Thread overview
Bug in GDC?
Apr 16, 2007
Geert Mulders
Apr 17, 2007
Thomas Kuehne
Oct 09, 2007
Joshua Scholar
April 16, 2007
I've got the following message while compiling some code:

test.d: In function `main':
test.d:4: error: unrecognizable insn:
(insn 14 12 15 0 (set (reg:XF 61)
        (const_int 0 [0x0])) -1 (nil)
    (nil))
test.d:4: internal compiler error: in extract_insn, at recog.c:2083

I got the code down to the following fragment:
void main()
{
    real temp = 3;
    temp = !temp;
}

Is this a known bug, or am I doing something wrong maybe?

Geert Mulders
April 17, 2007
Geert Mulders schrieb am 2007-04-16:
> I've got the following message while compiling some code:
>
> test.d: In function `main':
> test.d:4: error: unrecognizable insn:
> (insn 14 12 15 0 (set (reg:XF 61)
>         (const_int 0 [0x0])) -1 (nil)
>     (nil))
> test.d:4: internal compiler error: in extract_insn, at recog.c:2083
>
> I got the code down to the following fragment:
> void main()
> {
>     real temp = 3;
>     temp = !temp;
> }
>
> Is this a known bug, or am I doing something wrong maybe?

Please file a bug report.
(I could reproduce this issue with GDC-0.22 but not with GDC-0.23)

Added to DStress as http://dstress.kuehne.cn/run/b/bug_recog_2083_A.d http://dstress.kuehne.cn/run/b/bug_recog_2083_B.d http://dstress.kuehne.cn/run/b/bug_recog_2083_C.d http://dstress.kuehne.cn/run/b/bug_recog_2083_D.d http://dstress.kuehne.cn/run/b/bug_recog_2083_E.d http://dstress.kuehne.cn/run/b/bug_recog_2083_F.d

Thomas


October 09, 2007
I'm getting a similar bug trying to compile "the language machine"  on GDC-0.24 MingW32.

src/lm/element.d: In member function `toBool':
src/lm/element.d:205: error: unrecognizable insn:
(insn 14 13 15 0 (set (reg:DF 62)
        (const_int 0 [0x0])) -1 (nil)
    (nil))