In reversion #9197, error 129 is eliminated and only error 2 rises.
sdcc S.c -c
S.c:2: error 2: Initializer element is not constant
sdcc -v
SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/ds390/TININative/ds400/hc08/s08/stm8 3.4.3 #9197 (Mar 20 2015) (Linux)
published under GNU General Public License (GPL)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What's the bug here? Should the error mesage be clearer, maybe somthing like "Initializer element is not a constant expression"?
Philipp
Last edit: Philipp Klaus Krause 2015-03-16
Even gcc 4.x gives the simliar error:
S.c:2: error: initializer element is not constant
In reversion #9197, error 129 is eliminated and only error 2 rises.
sdcc S.c -c
S.c:2: error 2: Initializer element is not constant
sdcc -v
SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/ds390/TININative/ds400/hc08/s08/stm8 3.4.3 #9197 (Mar 20 2015) (Linux)
published under GNU General Public License (GPL)