[LLVMbugs] [Bug 7109] New: __builtin_offsetof - non-POD type warning
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon May 10 18:34:51 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7109
Summary: __builtin_offsetof - non-POD type warning
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: John.Thompson.JTSoftware at gmail.com
CC: llvmbugs at cs.uiuc.edu
class test
{
public:
test();
int member;
};
class testStruct
{
public:
testStruct();
test t;
};
int i = __builtin_offsetof (testStruct, t);
>clang -cc1 offsetof1.cpp
offsetof1.cpp:15:9: warning: offset of on non-POD type 'testStruct'
int i = __builtin_offsetof (testStruct, t);
^ ~
1 warning generated.
--
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