digitalmars.D.bugs - DMD 0.158 - Compiler endless loop
- John C (17/17) May 25 2006 On DMD 0.158, Windows XP, the compiler goes into an endless loop until
- Thomas Kuehne (16/32) Jun 01 2006 -----BEGIN PGP SIGNED MESSAGE-----
On DMD 0.158, Windows XP, the compiler goes into an endless loop until
it runs out of memory when faced with this code:
struct STRUCTA {
union {
int a;
long b;
}
STRUCTB c;
}
struct STRUCTB {
int a;
}
If STRUCTB is defined before STRUCTA, or if STRUCTB is a class or
interface, there's no problem. Also, take away the union and it compiles
fine.
This did not occur in previous releases.
John.
May 25 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John C schrieb am 2006-05-25:
On DMD 0.158, Windows XP, the compiler goes into an endless loop until
it runs out of memory when faced with this code:
struct STRUCTA {
union {
int a;
long b;
}
STRUCTB c;
}
struct STRUCTB {
int a;
}
If STRUCTB is defined before STRUCTA, or if STRUCTB is a class or
interface, there's no problem. Also, take away the union and it compiles
fine.
This did not occur in previous releases.
Added to DStress as
http://dstress.kuehne.cn/run/s/struct_25_A.d
http://dstress.kuehne.cn/run/s/struct_25_B.d
http://dstress.kuehne.cn/run/s/struct_25_C.d
http://dstress.kuehne.cn/run/s/struct_25_D.d
http://dstress.kuehne.cn/run/s/struct_25_E.d
http://dstress.kuehne.cn/run/s/struct_25_F.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFEftdh3w+/yD4P9tIRAhTFAKCm+E0s0gPtdcTHDI84/F36MWwT+wCgvqrv
ufTa4T8Ifet67uC91ojIT3g=
=GVId
-----END PGP SIGNATURE-----
Jun 01 2006








Thomas Kuehne <thomas-dloop kuehne.cn>