[LLVMbugs] [Bug 2910] New: clang codegen doesn't handle non-constant offsetof
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Oct 17 13:53:29 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2910
Summary: clang codegen doesn't handle non-constant offsetof
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: LLVM Codegen
AssignedTo: unassignedbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu, ddunbar at stanford.edu
This crashes -emit-llvm:
struct sockaddr_un {
unsigned char sun_len;
char sun_path[104];
};
int test(int len) {
return __builtin_offsetof(struct sockaddr_un, sun_path[len+1]);
}
--
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