[LLVMbugs] [Bug 10359] New: Allows declarators after a class template declaration
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 14 12:03:09 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10359
Summary: Allows declarators after a class template declaration
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: schaub.johannes at googlemail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Clang accepts this code
template<typename T> struct A { static A a; } A<T>::a;
It should reject it, because when a template-declaration declares a class
template, no declarators are permitted to appear in the init-declarator section
of the simple-declaration.
--
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.
More information about the llvm-bugs
mailing list