Do you know why this is an error? struct Foo {} enum Foo f; void main() {} I think there's no need to consider it an error (and it can't cause runtime bugs): http://d.puremagic.com/issues/show_bug.cgi?id=4049 Bye, bearophile