char *g(const char *s, int c);
void f()
{
char *s, t;
g(s, t);
}
Compiling this with sdcc test.c -mstm8 results in test.c:6: error 9: FATAL Compiler Internal Error in file 'gen.c' line number '421' : code generator internal error. Tested with commit 11662.
This also triggers on simpler code such as this :
This is basically the same uninitialized variable problem as bug [#3045] and likewise fixed by revisions [r11667] and [r11670]
Related
Bugs:
#3045