Skip to content

Commit c68fc1a

Browse files
committed
CWG3004 Pointer arithmetic on array of unknown bound
1 parent bfdfd68 commit c68fc1a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/expressions.tex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8619,6 +8619,13 @@
86198619
\item
86208620
a \keyword{reinterpret_cast}\iref{expr.reinterpret.cast};
86218621

8622+
\item
8623+
pointer arithmetic\iref{expr.add} where
8624+
one (possibly converted) operand
8625+
points to the first element of an array of unknown bound and
8626+
the other (possibly converted) operand
8627+
is of integral type with non-zero value;
8628+
86228629
\item
86238630
a modification of an object\iref{expr.assign,expr.post.incr,expr.pre.incr}
86248631
unless it is applied to a non-volatile lvalue of literal type

0 commit comments

Comments
 (0)