[LLVMbugs] [Bug 3500] New: Wrong type computed for member access to unsigned bitfield
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Feb 6 19:04:59 PST 2009
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: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list