Skip to content
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
22 changes: 21 additions & 1 deletion source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1720,9 +1720,29 @@
type of the entity named by $E$.
If there is no such entity, the program is ill-formed;

\item otherwise, if $E$ is an unparenthesized \grammarterm{splice-expression},
\item otherwise, if $E$ is an unparenthesized \grammarterm{splice-expression}:
\begin{itemize}
\item if $E$ is of the form \grammarterm{splice-specifier},
\tcode{decltype($E$)} is the type of the entity, object, or value
designated by the \grammarterm{splice-specifier} of $E$;
\item otherwise, if $E$ is of the form
\tcode{template \grammarterm{splice-specialization-specifier}}
and the \grammarterm{splice-specifier} of
the \grammarterm{splice-specialization-specifier} designates
a variable template $T$,
let $S$ be the specialization of $T$
corresponding to the template argument list of
the \grammarterm{splice-specialization-specifier};
\tcode{decltype($E$)} is the type of $S$;
\item otherwise, if $E$ is of the form
\tcode{template \grammarterm{splice-specifier}},
or of the form
\tcode{template \grammarterm{splice-specialization-specifier}}
whose \grammarterm{splice-specifier} designates a function template,
$E$ denotes an overload set\iref{expr.prim.splice} and the program is
ill-formed;
\item otherwise, the program is ill-formed;
\end{itemize}

\item otherwise, if $E$ is
an xvalue, \tcode{decltype($E$)} is \tcode{T\&\&}, where \tcode{T} is the type
Expand Down
Loading