http://llvm.org/bugs/show_bug.cgi?id=11245
Summary: clang incorrectly accepts ::template S<...>
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
clang accepts this in C++11 mode, and with a warning in C++98 mode:
template<typename T> struct S {};
::template S<int> 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.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs