ICE using const as offset in inline assembly

pmoore pmoore_member at pathlink.com
Wed Jun 21 15:20:32 PDT 2006


The following code crashes the compiler (DMD 0.160 and 0.161)

#const int CONST_OFFSET = 10;
#
#void main()
#{
#	asm
#	{
#		mov EDI, 10;
#		mov EAX, [EDI + CONST_OFFSET];
#	}
#}

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:) )










More information about the Digitalmars-d-bugs mailing list