Parser don't recognize error when syntax call function error:
volatile unsigned char A, B; void test2() { B = 0x10; } void test (unsigned char a) { test2(); A = a; } int i=0; void main() { test(10), 1; }
pic16 file
You seem to have CSS turned off. Please don't fill out this field.
sdcc -v SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.0 #5416 (Feb 3 2010) (UNIX)
command line: sdcc -mpic16 pic.c
I do not see any problem here. The sampel you provided is correct C code and should compile without an error.
E.g. the line
test(10), 1;
Applies the comma operator to operands test(10) and 1, which is valid C.
Philipp
Log in to post a comment.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
pic16 file
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
sdcc -v
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.0 #5416 (Feb 3 2010) (UNIX)
command line: sdcc -mpic16 pic.c
I do not see any problem here. The sampel you provided is correct C code and should compile without an error.
E.g. the line
test(10), 1;
Applies the comma operator to operands test(10) and 1, which is valid C.
Philipp