www.digitalmars.com         C & C++   DMDScript  

D - compiler crash. [Beta v0.58]

the following crashes the compiler [Digital Mars D Compiler Beta v0.58];
should I be able to instatiate a template within a try/catch block ?


import c.stdio;

class Bar {}
template Foo( T ) {
 void func() { };
}

int main( char[][] args )
{
 try {
  instance Foo( Bar ) filter;
 } catch (Exception e) {
  printf( "Exception %.*s", e.msg );
 } finally {
  printf( "Done0." );
 }
 return 0;
}
Mar 06 2003