The attached code causes SDCC to crash with a segmentation fault. The issue seems to be the initalization of a variable with another variable of the same name from an outer block.
It seems to depend on a few factors, for example the type of the two variables must be different and there has to be some function involved in the initalization.
This bug doesn't seem very important to me* as it happens with code you never should write in the first place...
- SDCC : mcs51/gbz80/z80/z180/r2k/r3ka/ds390/pic16/pic14/TININative/ds400/hc08/s08 3.2.0 #8008 (Sep 2 2013) (Linux)
- SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.4.1 #9021 (May 8 2014) (Linux)
/usr/bin/sdcc-sdcc: Zeile 3: 23526 Speicherzugriffsfehler (Speicherabzug geschrieben) /usr/libexec/sdcc/sdcc "$@"
* Apart from it being my first compiler bug. Yay!
Log in to post a comment.