//----
void foo() nothrow
{
throw new Hello();
}
//----
Produces:
//----
main.d(3): Error: undefined identifier Hello
Assertion failure: 'cd' on line 5048 in file 'statement.c'
abnormal program termination
//----
This is a regression introduced in 2.061, which was probably caused by:
http://d.puremagic.com/issues/show_bug.cgi?id=8675https://github.com/D-Programming-Language/dmd/commit/d77b7c2bf456e99495d8a6644a6304995d1a3b20
In 2.060, the error produced is:
//----
main.d(3): Error: undefined identifier Hello
main.d(3): Error: _error_ is thrown but not caught
main.d(1): Error: function main.foo 'foo' is nothrow yet may throw
//----
Comment #1 by andrej.mitrovich — 2013-01-10T10:20:42Z