www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - a auto object produced in a version scope.

reply yama <yama_member pathlink.com> writes:
D.bug.
A auto object produced in a version scope sets up a segmentation falt.

void main()
{
    version(all) { auto Object obj = new Object; }
    obj.print;
} 
Feb 25 2006
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

yama schrieb am 2006-02-26:
 D.bug.
 A auto object produced in a version scope sets up a segmentation falt.

 void main()
 {
         version(all) { auto Object obj = new Object; }
         obj.print;
 } 
Added to DStress as http://dstress.kuehne.cn/run/a/auto_16_A.d http://dstress.kuehne.cn/run/a/auto_16_B.d http://dstress.kuehne.cn/run/a/auto_16_C.d http://dstress.kuehne.cn/run/a/auto_16_D.d http://dstress.kuehne.cn/run/a/auto_16_E.d http://dstress.kuehne.cn/run/a/auto_16_F.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFEBeWw3w+/yD4P9tIRAho0AJ9d9blBzrsl92IB4CYR390IQ02f4ACfXi4W eaP5Aix/JUVRY3LMxjLlHIA= =bP79 -----END PGP SIGNATURE-----
Mar 01 2006