#2214 FATAL Compiler Internal Error in file 'glue.c'

open
nobody
None
PIC14
1
2013-09-10
2013-09-10
BsAtHome
No

The compiler bugs out with an internal error on union initialization. Test-code "inittest.c" attached to this report.

SDCC version (current svn):
$ ~/sdcc-bin/bin/sdcc -v
SDCC : pic16/pic14/stm8 3.3.1 #8839 (Sep 10 2013) (Linux)

Commandline:
$ ~/sdcc-bin/bin/sdcc -mpic14 -p12f1840 --fverbose-asm --use-non-free -I. -Wa-w1 -DCPU_12f1840 -c -o inittest.o inittest.c
inittest.c:34: error 9: FATAL Compiler Internal Error in file 'glue.c' line number '1007' : !list || ((list->type == INIT_NODE) && IS_AST_LIT_VALUE(list->init.node))
Contact Author with source code

Using "classic" initialization does not help and pops up same error but a different line in the file glue.c:
...
bla_t blavar = { {42}, {69} };

$ ~/sdcc-bin/bin/sdcc -mpic14 -p12f1840 --fverbose-asm --use-non-free -I. -Wa-w1 -DCPU_12f1840 -c -o inittest.o inittest.c
inittest.c:33: error 9: FATAL Compiler Internal Error in file 'glue.c' line number '760' : !list || (list->type == INIT_NODE)

1 Attachments

Discussion

  • BsAtHome
    BsAtHome
    2013-09-10

    <third try="" to="" reply="" to="" my="" inital="" report...="">

    The original error uses init like this:
    ...
    bla_t blavar = { .b = 42, .c = 69 };

    The original attachment got saved wrongly, apparently.