← Back to index
|
Original Bugzilla link
Bug 167 – .offsetof doesn't work when a struct/union/class is the target
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-05-30T11:44:00Z
Last change time
2014-02-15T13:21:03Z
Assigned to
bugzilla
Creator
h3r3tic
Comments
Comment #0
by h3r3tic — 2006-05-30T11:44:06Z
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 }
Comment #1
by bugzilla — 2006-06-30T20:25:52Z
Fixed DMD 0.162