[LLVMbugs] [Bug 7970] New: clang allows redeclaration of static data member
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Aug 23 00:07:27 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7970
Summary: clang allows redeclaration of static data member
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Keywords: accepts-invalid
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 int val;
static int val;
};
clang compiles the above sample without complaints.
It should say something like:
t2.cpp:3:9: error: duplicate member 'val'
static int val;
^
t2.cpp:2:9: note: previous declaration is here
static int val;
^
--
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