Menu ▾ ▴

#3023 FATAL Compiler Internal Error on bad const string literal cast

closed-fixed
None
other
5
2023-01-28
2020-06-06
No
void f(void)
{
  *(char *)"c" = 0;
}

With sdcc test.c, this gives test.c:3: error 9: FATAL Compiler Internal Error in file 'gen.c' line number '11186' : genPointerSet: illegal pointer type. Tested with commit 11647.

Related

Wiki: NGI0-Entrust-SDCC

Discussion

  • Philipp Klaus Krause

    I can still reproduce this on my Debian GNU/Linux testing system as of [r13827].

     

    Related

    Commit: [r13827]

  • Philipp Klaus Krause

    • status: open --> closed-fixed
    • assigned_to: Philipp Klaus Krause
     
  • Philipp Klaus Krause

    Fixed in [r13836].

     

    Related

    Commit: [r13836]


Log in to post a comment.