Why is this code currently seen an error? struct Foo {} enum Foo f; void main() {} I have asked for another little change in bugzilla: http://d.puremagic.com/issues/show_bug.cgi?id=4049 Bye, bearophile