www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - templated this()

reply "Ilya Zaitseff" <sark7 mail333.com> writes:
DMD (0.106) crashes compiling following:

class Any
{
   template X()
   {
     this() {}
   }
}

void main()
{
   Any a = new Any.X!();
}
Nov 09 2004
parent Thomas =?UTF-8?B?S8O8aG5l?= <thomas-dloop kuehne.cn> writes:
Ilya Zaitseff schrieb am Dienstag, 9. November 2004 23:58:
 DMD (0.106) crashes compiling following:
 
 class Any
 {
    template X()
    {
      this() {}
    }
 }
 
 void main()
 {
    Any a = new Any.X!();
 }
added to DStress as: http://svn.kuehne.cn/dstress/nocompile/constructor_05.d Thomas
Nov 09 2004