[Bug 167] New: .offsetof doesn't work when a struct/union/class is the target
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 30 09:44:08 PDT 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=167
Summary: .offsetof doesn't work when a struct/union/class is the
target
Product: D
Version: 0.159
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: h3r3tic at mat.uni.torun.pl
struct o_O { int a; }
union O_O { int a; }
class O_o { int a; }
struct Foo {
int ok;
o_O foo;
O_O bar;
O_o baz;
}
void main() {
int o1 = Foo.ok.offsetof; // ok
int o2 = Foo.foo.offsetof; // blah
int o3 = Foo.bar.offsetof; // blah
int o4 = Foo.baz.offsetof; // blah
}
--
More information about the Digitalmars-d-bugs
mailing list