Skip to content

Commit 4fb5ad3

Browse files
burblebeetkoeppe
authored andcommitted
CWG2823 Implicit undefined behavior when dereferencing pointers
1 parent 544c15f commit 4fb5ad3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/expressions.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4560,8 +4560,10 @@
45604560
\indextext{dereferencing|see{indirection}}%
45614561
Its operand shall be a prvalue of type ``pointer to \tcode{T}'',
45624562
where \tcode{T} is an object or function type.
4563-
The operator yields an lvalue of type \tcode{T}
4564-
denoting the object or function to which the operand points.
4563+
The operator yields an lvalue of type \tcode{T}.
4564+
If the operand points to an object or function,
4565+
the result denotes that object or function;
4566+
otherwise, the behavior is undefined except as specified in \ref{expr.typeid}.
45654567
\begin{note}
45664568
\indextext{type!incomplete}%
45674569
Indirection through a pointer to an incomplete type (other than

0 commit comments

Comments
 (0)