http://llvm.org/bugs/show_bug.cgi?id=3500
Summary: Wrong type computed for member access to unsigned
bitfield
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Testcase:
struct {unsigned x : 2;} x;
__typeof__(x.x+1) y;
int y;
This should compile without errors/warnings. clang gives an error; gcc accepts
it.
Standard reference: C99 6.3.1.1p2.
--
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