#1744 Parser error

closed-rejected
5
2011-01-17
2011-01-17
Anonymous
No

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;
}

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-01-17

    pic16 file

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-01-17

    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

     
  • Philipp Klaus Krause

    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

     
  • Philipp Klaus Krause

    • labels: 608414 --> C-Front End
    • assigned_to: nobody --> spth
    • status: open --> closed-rejected
     

Log in to post a comment.