Skip to content

Commit 911c922

Browse files
burblebeetkoeppe
authored andcommitted
CWG2819 Cast from null pointer value in a constant expression
1 parent 37303be commit 911c922

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/expressions.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7625,7 +7625,9 @@
76257625
from a prvalue \tcode{P} of type ``pointer to \cv{}~\keyword{void}''
76267626
to a type ``\cvqual{cv1} pointer to \tcode{T}'',
76277627
where \tcode{T} is not \cvqual{cv2}~\keyword{void},
7628-
unless \tcode{P} points to an object whose type is similar to \tcode{T};
7628+
unless \tcode{P}
7629+
is a null pointer value or
7630+
points to an object whose type is similar to \tcode{T};
76297631

76307632
\item
76317633
a \keyword{reinterpret_cast}\iref{expr.reinterpret.cast};

0 commit comments

Comments
 (0)