digitalmars.D.bugs - ICE using const as offset in inline assembly
- pmoore (15/15) Jun 21 2006 The following code crashes the compiler (DMD 0.160 and 0.161)
- Thomas Kuehne (12/27) Jun 29 2006 -----BEGIN PGP SIGNED MESSAGE-----
The following code crashes the compiler (DMD 0.160 and 0.161) #const int CONST_OFFSET = 10; #void main() It's the use of the const as an offset that causes the crash. Remove the '+ CONST_OFFSET' and it works ok. This code works in DMD 0.158. Not sure about 0.159 (I don't have 0.159 and I need to go to sleep now:) )
Jun 21 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 pmoore schrieb am 2006-06-21:The following code crashes the compiler (DMD 0.160 and 0.161) #const int CONST_OFFSET = 10; #void main() It's the use of the const as an offset that causes the crash. Remove the '+ CONST_OFFSET' and it works ok. This code works in DMD 0.158. Not sure about 0.159 (I don't have 0.159 and I need to go to sleep now:) )Added to DStress as http://dstress.kuehne.cn/compile/a/asm_offset_02_A.d http://dstress.kuehne.cn/compile/a/asm_offset_02_B.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFEo6z13w+/yD4P9tIRAltXAKDBVLEfQs71siLESv9Wn8IOwmumzwCgiPOg 8Ixy2O2s9Q7Em4X/k+NUi8g= =zyXj -----END PGP SIGNATURE-----
Jun 29 2006