[LLVMbugs] [Bug 7560] New: Type merging not performed on local extern declarations in C++
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jul 3 01:05:01 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7560
Summary: Type merging not performed on local extern
declarations in C++
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rideau3 at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The following invalid program is accepted in C++ mode (though not in C mode):
extern int i[];
void foo () { extern int i [3]; }
void bar () { extern int i [4]; }
In C mode, we correctly diagnose that this involves declaring i with two
different types.
--
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