[LLVMbugs] [Bug 8026] New: clang c++ incorrectly accepts template data member
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Aug 29 13:47:38 PDT 2010
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: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list