File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 4385
4385
\end {example }
4386
4386
4387
4387
\pnum
4388
- A \grammarterm {qualified-id}
4389
- whose terminal name is dependent and that is in a type-only context
4390
- is considered to denote a type.
4388
+ Each of the forms
4389
+ \begin {ncsimplebnf }
4390
+ nested-name-specifier identifier\br
4391
+ nested-name-specifier \opt {\keyword {template}} simple-template-id
4392
+ \end {ncsimplebnf }
4393
+ where the terminal name $ N$ is dependent\iref {temp.dep.type }
4394
+ is interpreted as a \grammarterm {simple-type-specifier}\iref {dcl.type.simple }
4395
+ if $ N$ is in a type-only context and
4396
+ as a \grammarterm {qualified-id}\iref {expr.prim.id.qual } otherwise.
4391
4397
A name
4392
4398
that refers to a \grammarterm {using-declarator} whose terminal name is dependent
4393
- is interpreted as a \grammarterm {typedef-name}
4394
- if the \grammarterm {using-declarator} uses the keyword \keyword {typename}.
4399
+ is interpreted as a \grammarterm {typedef-name}\iref {dcl.typedef }
4400
+ if the \grammarterm {using-declarator} uses the keyword \keyword {typename}
4401
+ and as an \grammarterm {unqualified-id}\iref {expr.prim.id.unqual } otherwise.
4395
4402
\begin {example }
4396
4403
\begin {codeblock }
4397
4404
template <class T> void f(int i) {
You can’t perform that action at this time.
0 commit comments