#199 Internal compiler error

closed-fixed
5
2013-05-25
2001-10-28
No

I get the following internal compiler error:

) sdcc -c bug.c
bug.c:1: warning: in function barf unreferenced function argument : 'p'
bug.c:4: error: FATAL Compiler Internal Error in file 'SDCCicode.c' line number '1069' : operandOperation invalid operator
Contact Author with source code
SDCCicode.c:1071: failed assertion `0'
Abort trap

Code that generates this error:

void barf(int * p) {}

void main() {
barf(&1);
}

Discussion

  • Johan Knol

    Johan Knol - 2001-10-29
    • milestone: --> fixed
    • assigned_to: nobody --> johanknol
    • status: open --> closed-fixed
     
  • Johan Knol

    Johan Knol - 2001-10-29

    Logged In: YES
    user_id=63512

    > bug.c:1: warning: in function barf unreferenced function
    argument : 'p'

    That is correct.

    > bug.c:4: error: FATAL Compiler Internal Error in
    file 'SDCCicode.c' line number '1069' : operandOperation
    invalid operator

    The compiler shouldn't crash, but you can't take the
    address of a literal.

    crash fixed in SDCCast.c:1.98

     

Log in to post a comment.