[LLVMbugs] [Bug 6904] New: clang allows redefinition of static const member
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Apr 23 12:56:59 PDT 2010
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: unassignedclangbugs at nondot.org
ReportedBy: akyrtzi at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list