[LLVMbugs] [Bug 10065] Bogus pedantic warning when using offsetof(type, field[n])
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 2 13:03:33 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10065
Eli Friedman <sharparrow1 at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Eli Friedman <sharparrow1 at yahoo.com> 2011-06-02 15:03:32 CDT ---
"[...] expands to an integer constant expression that has type size_t, the
value of which is the offset in bytes, to the structure member (designated by
member-designator), from the beginning of its structure (designated by type)."
"stuff[99]" is not a "structure member"; it's part of an expression indexing
into a struct.
--
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