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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs