Hi.
This code (attached) makes sdcc to segfault: --- union u t[2] = { { 1, 2 }, { 1, 2 } };
unsigned char main() { return 0; } ---
$ sdcc sg.c Caught signal 11: SIGSEGV
a test-case
Logged In: YES user_id=888171 Originator: NO
Since the union was not yet defined before it is created here with no member fields. And thus any initializer is one too many.
Fixed in SDCC 2.7.5 #5037 by generating a proper error.
Log in to post a comment.
a test-case
Logged In: YES
user_id=888171
Originator: NO
Since the union was not yet defined before it is created here with no member fields. And thus any initializer is one too many.
Fixed in SDCC 2.7.5 #5037 by generating a proper error.