[LLVMbugs] [Bug 4465] New: offsetof() inconsistent with gcc on ParamBlockRec from Carbon headers
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Jun 26 15:52:28 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4465
Summary: offsetof() inconsistent with gcc on ParamBlockRec from
Carbon headers
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: alexei.svitkine at gmail.com
CC: llvmbugs at cs.uiuc.edu
If you include Carbon headers, and try the following with GCC and clang:
offsetof(struct IOParam, ioVRefNum)
The result with GCC is 22, while the result with clang is 24.
This bug makes it impossible to call, for example PBReadSync(), which takes a
ParamBlockRec parameter, because the user application fills in that structure
at different offsets (clang) than the library code (gcc).
--
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