Regression in 2.062 => 2.063
Basically, when a you assign to a static array (and it postblits elements), if an exception is thrown, it is not caught by "catch(Exception)". It *is* caught by "catch(Throwable)" though, yet not by "catch("Error")".
//----
import std.stdio;
struct S
{
this(this)
{
throw new Exception("BOOM!");
}
}
void main()
{
S s;
S[1] ss;
writeln("s = s");
try
{
s = s;
}
catch(Exception e)
writeln("caught in Exception");
catch(Error e)
writeln("caught in Error");
catch(Throwable e)
writeln("caught in Throwable");
writeln("ss = s");
try
{
ss = s;
}
catch(Exception e)
writeln("caught in Exception");
catch(Error e)
writeln("caught in Error");
catch(Throwable e)
writeln("caught in Throwable");
writeln("ss = ss");
try
{
ss = ss;
}
catch(Exception e)
writeln("caught in Exception");
catch(Error e)
writeln("caught in Error");
catch(Throwable e)
writeln("caught in Throwable");
}
//----
2.062:
s = s
caught in Exception
ss = s
caught in Exception
ss = ss
caught in Exception
2.063:
s = s
caught in Exception
ss = s
caught in Throwable
ss = ss
caught in Throwable