http://llvm.org/bugs/show_bug.cgi?id=8026
Summary: clang c++ incorrectly accepts template data member
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Testcase:
struct A {
template<int N> int i;
};
clang accepts without error, comeau gives:
"ComeauTest.c", line 2: error: not a valid member class or function template
declaration
template<int N> int i;
^
--
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