[Issue 6564] enum with no initializer compiles

2012-01-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6564 yebblies yebbl...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 6564] enum with no initializer compiles

2012-01-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6564 --- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-01-30 22:19:30 PST --- (In reply to comment #1) --- x.di --- enum Length; That's not generated by the compiler (at least not 2.057, I don't know about 2.058 HEAD). But how

[Issue 6564] enum with no initializer compiles

2012-01-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6564 --- Comment #3 from yebblies yebbl...@gmail.com 2012-01-31 17:25:22 EST --- (In reply to comment #2) That's not generated by the compiler (at least not 2.057, I don't know about 2.058 HEAD). It doesn't get generated by the compiler, but you

[Issue 6564] enum with no initializer compiles

2012-01-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6564 --- Comment #4 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-01-30 22:38:43 PST --- (In reply to comment #3) An enum declaration creates its own type, so in the same kind of places you'd want to pass around an opaque struct pointer.