[Issue 947] New: offsetof and alignof for an enum field of a struct fail to compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 10 23:44:21 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=947
Summary: offsetof and alignof for an enum field of a struct fail
to compile
Product: D
Version: 1.005
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: guido at grumpy-cat.com
// 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;
}
--
More information about the Digitalmars-d-bugs
mailing list