Skip to content

Commit a71c798

Browse files
committed
CWG2397 auto specifier for pointers and references to arrays
1 parent fb3bea8 commit a71c798

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/declarations.tex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1924,6 +1924,7 @@
19241924
and $E$ is the corresponding template argument.
19251925
\end{itemize}
19261926

1927+
\tcode{T} shall not be an array type.
19271928
In the case of a \tcode{return} statement with no operand
19281929
or with an operand of type \keyword{void},
19291930
\tcode{T} shall be either
@@ -3143,7 +3144,6 @@
31433144
\pnum
31443145
\tcode{U} is called the array \defn{element type};
31453146
this type shall not be
3146-
a placeholder type\iref{dcl.spec.auto},
31473147
a reference type,
31483148
a function type,
31493149
an array of unknown bound, or
@@ -3606,6 +3606,9 @@
36063606
\indextext{function return type|see{return type}}%
36073607
\indextext{return type}%
36083608
The return type shall be a non-array object type, a reference type, or \cv{}~\keyword{void}.
3609+
\begin{note}
3610+
An array of placeholder type is considered an array type.
3611+
\end{note}
36093612

36103613
\pnum
36113614
A volatile-qualified return type is deprecated;

0 commit comments

Comments
 (0)