Skip to content

Commit 76493cf

Browse files
committed
CWG2819 Cast from null pointer value in a constant expression
1 parent 6d67d20 commit 76493cf

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
@@ -7601,7 +7601,9 @@
76017601
from a prvalue \tcode{P} of type ``pointer to \cv{}~\keyword{void}''
76027602
to a type ``\cvqual{cv1} pointer to \tcode{T}'',
76037603
where \tcode{T} is not \cvqual{cv2}~\keyword{void},
7604-
unless \tcode{P} points to an object whose type is similar to \tcode{T};
7604+
unless \tcode{P}
7605+
is a null pointer value or
7606+
points to an object whose type is similar to \tcode{T};
76057607

76067608
\item
76077609
a \keyword{reinterpret_cast}\iref{expr.reinterpret.cast};

0 commit comments

Comments
 (0)