// dbug.d:15: Error: no property 'offsetof' for type 'int' enum magic { xyzzy, plugh } struct plover { int a; magic b; int c; } void main() { auto y2 = plover.b.offsetof; }
Added to DStress as http://dstress.kuehne.cn/compile/o/offsetof_81_A.d
This was fixed either in 1.039 or 1.041. Works in D2, as well.