http://llvm.org/bugs/show_bug.cgi?id=6904
Summary: clang allows redefinition of static const member
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
struct S {
static const int val = 1;
};
const int S::val = 1; // or any other value
clang compiles the above sample without complaints.
It should say something like:
error: member "S::val" has already been initialized
--
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