const Foo foo = { bar: 0 };
struct Foo {
long bar;
}
// ----
Error: 'bar' is not a member of 'Foo'
There's no line number reported, works fine in dmd 1.020. Works when you put the const after Foo's definition.
hmm... First! :D // bug reported for 1.021 :P