import std.range;
struct Foo
{
struct Baz {}
auto call (T)(T)
{
return bazs.back; // BUG if I remove or change this, it will compile
}
Baz[] bazs; // BUG using int instead of Baz, it will compile
}
struct Bar
{
auto option (int)
{
return 0;
}
~this () // BUG removing this destructor, it will compile
{ }
}
void main ()
{
Foo foo;
foo.call (Bar ().option (1)); // BUG if I remove .option(1) it will compile
}
Internal error: backend/cgcs.c 351