We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With C99 you can use designated initializers to set struct fields in any order. This code works fine with wcc386:
wcc386
typedef struct Test Test; struct Test { short a; unsigned b; }; Test test[] = { { .a = 1, .b = 2 }, { .b = 3, .a = 2 }, };
However, if you include an anonymous union this is no longer true:
typedef struct TestBad TestBad; struct TestBad { short a; union { float c; unsigned b; }; }; TestBad test_bad[] = { { .a = 1, .b = 2 }, { .b = 3, .a = 2 }, };
Compiling with Version 2.0 beta Jun 1 2024 01:58:48 (32-bit) I get the following error:
Version 2.0 beta Jun 1 2024 01:58:48 (32-bit)
$ wcc386 -q test_bad.c test_bad.c(13): Error! E1118: ***FATAL*** Bad initializer quad
The text was updated successfully, but these errors were encountered:
Thanks for your bug report.
Sorry, something went wrong.
No branches or pull requests
With C99 you can use designated initializers to set struct fields in any order. This code works fine with
wcc386
:However, if you include an anonymous union this is no longer true:
Compiling with
Version 2.0 beta Jun 1 2024 01:58:48 (32-bit)
I get the following error:The text was updated successfully, but these errors were encountered: