The following code throws an access violation when compiled with "-inline". It works fine with other compiler flags.
------------------------------------------
module nestedclass2;
private import std.stdio;
class Foo
{
class Bar
{
void doSayHello()
{
sayHello();
}
}
Bar bar;
void sayHello()
{
writefln("Hello");
}
this()
{
bar = new Bar();
}
}
class Foo2 : Foo
{
}
int main(char[][] argv)
{
Foo2 foo = new Foo2();
writefln("This should print Hello:");
foo.bar.doSayHello();
return 0;
}