Skip to content

Commit 7ba74b8

Browse files
burblebeetkoeppe
authored andcommitted
CWG2643 Completing a pointer to array of unknown bound
Fixes NB US 039 (C++23 CD).
1 parent 7b81bde commit 7ba74b8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

source/basic.tex

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4666,9 +4666,14 @@
46664666
can be an array of unknown bound and therefore be incomplete at one
46674667
point in a translation unit and complete later on; the array types at
46684668
those two points (``array of unknown bound of \tcode{T}'' and ``array of
4669-
\tcode{N} \tcode{T}'') are different types. The type of a pointer to array of
4670-
unknown bound, or of a type defined by a \keyword{typedef} declaration to
4671-
be an array of unknown bound, cannot be completed.
4669+
\tcode{N} \tcode{T}'') are different types.
4670+
\begin{note}
4671+
The type of a pointer or reference to array of unknown bound
4672+
permanently points to or refers to an incomplete type.
4673+
An array of unknown bound named by a \keyword{typedef} declaration
4674+
permanently refers to an incomplete type.
4675+
In either case, the array type cannot be completed.
4676+
\end{note}
46724677
\begin{example}
46734678
\indextext{type!example of incomplete}%
46744679
\begin{codeblock}

0 commit comments

Comments
 (0)