Menu

#3025 FATAL Compiler Internal Error when trying to use xor on bitfield

closed-fixed
None
Front-end
5
2023-01-30
2020-06-06
No
struct
{
    int x : 1;
} c;

void f()
{
    c.x ^ -1;
}

When compiling this with sdcc test.c, this results in test.c:8: error 9: FATAL Compiler Internal Error in file 'SDCCsymt.c' line number '2172' : (IS_CHAR (etype1) || IS_BOOLEAN (etype1)) && (IS_CHAR (etype2) || IS_BOOLEAN (etype2)). Tested with commit 11647.

Related

Bugs: #3399
Wiki: NGI0-Entrust-SDCC

Discussion

  • Philipp Klaus Krause

    I still see this issue (with slightly different error message) in current SDCC [r13827].

     

    Related

    Commit: [r13827]

  • Philipp Klaus Krause

    • status: open --> closed-fixed
    • assigned_to: Philipp Klaus Krause
    • Category: other --> Front-end
     
  • Philipp Klaus Krause

    Fixed in [r13839].

     

    Related

    Commit: [r13839]


Log in to post a comment.