www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - seg-v in .138 with autos

reply BCS <BCS_member pathlink.com> writes:
This dies from a seg-v or the like on winXP with .138.

<code>
auto yd = ft * 3;
auto ft = inch * 12;
</code>
Nov 07 2005
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

BCS schrieb am 2005-11-08:
 This dies from a seg-v or the like on winXP with .138.

<code>
 auto yd = ft * 3;
 auto ft = inch * 12;
</code>
I modified your code a bit to evade some other potential bugs. The cause should be the same. Added to DStress as http://dstress.kuehne.cn/run/c/const_27_A.d http://dstress.kuehne.cn/run/c/const_27_B.d http://dstress.kuehne.cn/run/c/const_27_C.d http://dstress.kuehne.cn/run/c/const_27_D.d http://dstress.kuehne.cn/run/c/const_27_E.d http://dstress.kuehne.cn/run/c/const_27_F.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFDdkcD3w+/yD4P9tIRAmesAKCeekwPCZuM7y0zBf2t0ZguGiRykgCfWJvW oKjkS3+eU3APjWhmFCVvxMI= =X7E4 -----END PGP SIGNATURE-----
Nov 12 2005