snazzy-d / sdc

The Snazzy D Compiler
MIT License
243 stars 54 forks source link

Add support for anonymous structs/unions #119

Open deadalnix opened 9 years ago

deadalnix commented 9 years ago
struct S {
    struct { int a; } aa;
}

This kind of construct is legal in D, not not handled properly right now.

UplinkCoder commented 8 years ago

DMD does not compile that. the inner ananymous struct cannot be the type of a member variable; struct S { struct { int a; } } would be supported.