http://llvm.org/bugs/show_bug.cgi?id=2189
Summary: Inconsistencies with array typedefs
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]
>From Eli:
The testcases in
question are the following:
int x() {const int s[5]; int t[5]; return &s == &t;}
typedef int a[5]; int x() {const a s; a t; return &s == &t;}
Per C99 6.7.3.8, these are equivalent, and clang currently warns for the first,
but not the second.
Another similar case:
typedef int a[5]; typedef const int c[5]; int x() {a s; c* t; t = &s;}
vs.
typedef int a[5]; int x() {a s; const a* t; t = &s;}
Again equivalent, clang should warn either for both or for neither.
--
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