Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid ambiguity of placeholder on nested parameter #7454

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1779,8 +1779,13 @@
\opt{\grammarterm{type-constraint}} \keyword{auto}.
The placeholder type shall appear
as one of the \grammarterm{decl-specifier}{s} in
the \grammarterm{decl-specifier-seq} or
as one of the \grammarterm{type-specifier}{s} in
the \grammarterm{decl-specifier-seq}
directly related to the parameter
\begin{note}
not to a nested parameter in case of
function pointer or reference type
\end{note}
or as one of the \grammarterm{type-specifier}{s} in
a \grammarterm{trailing-return-type}
that specifies the type that replaces such
a \grammarterm{decl-specifier} (see below);
Expand Down Expand Up @@ -1817,6 +1822,11 @@
in an initializing declaration\iref{dcl.init} of a variable.
The placeholder type shall appear as one of the
\grammarterm{decl-specifier}{s} in the \grammarterm{decl-specifier-seq}
directly related to the variable
\begin{note}
not to a nested parameter in case of
function pointer or reference type
\end{note}
or as one of the
\grammarterm{type-specifier}{s} in a \grammarterm{trailing-return-type}
that specifies the type that replaces such a \grammarterm{decl-specifier};
Expand Down