June 09, 2005
This causes DMD to crash:

class A
{
 class B
 {

 }

 B b=new B;
}

If class B is outside A, or if it is static, it just gives the error that "new B" is not a constant initializer.


June 09, 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jarrett Billingsley schrieb am Wed, 8 Jun 2005 22:47:15 -0400:
> This causes DMD to crash:
>
> class A
> {
>  class B
>  {
>
>  }
>
>  B b=new B;
> }
>
> If class B is outside A, or if it is static, it just gives the error that "new B" is not a constant initializer.
>
>

Added to DStress as http://dstress.kuehne.cn/nocompile/n/new_23.d http://dstress.kuehne.cn/nocompile/n/new_24.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFCqFc/3w+/yD4P9tIRAgX1AJ97xVXwAxQ3zo5x7lbnTroJ2u5I9QCgts+H
jh6NrblslgOvHeYqM07w4/A=
=ihPF
-----END PGP SIGNATURE-----