#377 wrong line info (now reproduceable)

closed
None
5
2003-01-07
2002-08-26
No

Error info: line should be line 2 but it's 7. Now I could
reproduce it.

~/test $ cat err2.c
int func() { /*line 1*/
x=1;

/*
some lines here (line 5)
*/
}
int main(void) {} /* last line 9 */

felipe@felipe
~/test $ /usr/local/src/sdcc-cvs/bin/sdcc err2.c
err2.c:7: error: Undefined identifier 'x'
err2.c:7: error: code not generated for 'func' due to
previous errors
err2.c:8: error: code not generated for 'main' due to
previous errors

Discussion

  • Johan Knol

    Johan Knol - 2003-01-07
    • assigned_to: nobody --> johanknol
    • status: open --> closed
     
  • Johan Knol

    Johan Knol - 2003-01-07

    Logged In: YES
    user_id=63512

    fixed in SDCCast.c:1.156

     
  • Johan Knol

    Johan Knol - 2003-01-07

    Logged In: YES
    user_id=63512

    fixed in SDCCast.c:1.156

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks