The new regression test gte/pr58365.c fails to compile (at least for stm8 and z80) when enabled in cases/Makefile.in. At first, this looks like a plain struct return test that should just work. But it triggers assertions in codegen.
Bugs: #3540 Wiki: NGI0-Entrust-SDCC
Looks like somehow the static ends up at the return type instead of the function:
static
static struct S bar (void) { if (foo ()) return f; return g; }
Then, in main, at the call to bar, iCode generation creates a type that is both auto and static, which results in the error.
Fixed in [r13831].
Commit: [r13831]
Log in to post a comment.
Looks like somehow the
staticends up at the return type instead of the function:Then, in main, at the call to bar, iCode generation creates a type that is both auto and static, which results in the error.
Last edit: Philipp Klaus Krause 2023-01-27
Fixed in [r13831].
Related
Commit: [r13831]