[LLVMbugs] [Bug 3983] New: Improve handling of variables with different storage spec
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Apr 13 19:22:04 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=3983
Summary: Improve handling of variables with different storage
spec
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
This seems wrong, and the diagnostics could be nicer (see gcc):
--
void f0() {
// FIXME: Diagnose this?
int g6;
extern int g6;
}
void f1() {
// FIXME: Diagnose this?
int g7;
__private_extern__ int g7;
}
void f2() {
extern int g8; // expected-note{{previous definition}}
// FIXME: Improve this diagnostic.
int g8; // expected-error{{redefinition of 'g8'}}
}
void f3() {
__private_extern__ int g9; // expected-note{{previous definition}}
// FIXME: Improve this diagnostic.
int g9; // expected-error{{redefinition of 'g9'}}
}
--
--
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