|
|
| Bugzilla Link |
11245 |
| Resolution |
FIXED |
| Resolved on |
Oct 17, 2012 11:47 |
| Version |
unspecified |
| OS |
Linux |
| CC |
@DougGregor |
Extended Description
clang accepts this in C++11 mode, and with a warning in C++98 mode:
template struct S {};
::template S s;
This is not legal in either language (and not legal even within a template in C++98). The grammar for elaborated-type-specifiers requires a nested-name-specifier before the 'template' keyword in this context, and :: is not one.