Menu ▾ ▴

#3019 Compiler internal error when trying to pass a char * to a function that takes int

closed-out-of-date
None
Front-end
5
2023-01-26
2020-06-06
No
void g(char *);
char *h(int, int);

void f(char *s)
{
  g(h(s, 1));
}

Compiled with sdcc test.c, this gives

test.c:6: error 9: FATAL Compiler Internal Error in file 'SDCCast.c' line number '5827' : node PARAM shouldn't be processed here 
Contact Author with source code

Tested with commit 11647.

Related

Wiki: NGI0-Entrust-SDCC

Discussion

  • Philipp Klaus Krause

    • status: open --> closed-out-of-date
    • assigned_to: Philipp Klaus Krause
    • Category: other --> Front-end
     
  • Philipp Klaus Krause

    As of [r13827], this works fine for me.

     

    Related

    Commit: [r13827]


Log in to post a comment.