Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit afc0ac3

Browse files
committedNov 27, 2024
Avoid ambiguity of placeholder on nested parameter
Signed-off-by: Mauro Russo <[email protected]>
1 parent d017ce4 commit afc0ac3

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed
 

‎source/declarations.tex

+12-2
Original file line numberDiff line numberDiff line change
@@ -1779,8 +1779,13 @@
17791779
\opt{\grammarterm{type-constraint}} \keyword{auto}.
17801780
The placeholder type shall appear
17811781
as one of the \grammarterm{decl-specifier}{s} in
1782-
the \grammarterm{decl-specifier-seq} or
1783-
as one of the \grammarterm{type-specifier}{s} in
1782+
the \grammarterm{decl-specifier-seq}
1783+
directly related to the parameter
1784+
\begin{note}
1785+
not to a nested parameter in case of
1786+
function pointer or reference type
1787+
\end{note}
1788+
or as one of the \grammarterm{type-specifier}{s} in
17841789
a \grammarterm{trailing-return-type}
17851790
that specifies the type that replaces such
17861791
a \grammarterm{decl-specifier} (see below);
@@ -1817,6 +1822,11 @@
18171822
in an initializing declaration\iref{dcl.init} of a variable.
18181823
The placeholder type shall appear as one of the
18191824
\grammarterm{decl-specifier}{s} in the \grammarterm{decl-specifier-seq}
1825+
directly related to the variable
1826+
\begin{note}
1827+
not to a nested parameter in case of
1828+
function pointer or reference type
1829+
\end{note}
18201830
or as one of the
18211831
\grammarterm{type-specifier}{s} in a \grammarterm{trailing-return-type}
18221832
that specifies the type that replaces such a \grammarterm{decl-specifier};

0 commit comments

Comments
 (0)
Please sign in to comment.