version is 2.037 but it is not available in bugzilla.
[CODE]
import std.stdio;
struct Foo
{
public int foo()
{
return 2;
}
}
void main()
{
Foo bar;
enum bla = bar.foo(); //crash
}
[/CODE]
this enum declration gives no error or anything but crashes dmd (2.037) while compiling with no options set.
Comment #1 by spam — 2009-12-24T05:33:56Z
ok investigated more and it turns out this bug is really a regression since dmd2036. with dmd2035 the code worked as expected and did not crash dmd.
Comment #2 by bugzilla — 2009-12-24T15:45:48Z
Changeset 310.
Comment #3 by leandro.lucarella — 2009-12-25T09:59:37Z