Compiler internal error
Aleksey S. Skidan
al.skidan at gmail.com
Sun Dec 17 06:39:23 PST 2006
Windows XP, MinGW 3.4.2:
C:\3>gdc -S test.d
test.d:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
The test.d:
const{
uint KZERO = 0xB000_0000;
}
uint
v2p(uint x)
{
return x-KZERO;
}
extern(C) void
start()
{
asm{
naked;
xor EAX, EAX;
mov EBX, v2p(KZERO);
}
}
The error in "mov EBX, v2p(KZERO)" seems to cause the internal compiler error.
More information about the Digitalmars-d-bugs
mailing list