-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
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
Error when initializing multiple bit fields #1283
Comments
This case is now fixed. |
I downloaded the release and replaced my current version: it fixes my test program. |
GateLinker
pushed a commit
to GateLinker/open-watcom-v2
that referenced
this issue
Oct 1, 2024
GateLinker
pushed a commit
to GateLinker/open-watcom-v2
that referenced
this issue
Oct 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I found an issue when initializing multiple bit fields:
It gives this error:
test.c(27): Error! E1063: Missing operand
This error doesn't depend on the presence of the trailing comma. Using -za99 doesn't change anything either. However, the error goes away when removing one of the bit field initializers (either bit1 or bit2). The error also goes away when using array-style initialization:
I had a watch in the ISO/IEC 9899:1999 reference, section 6.7.8 , to make sure there wasn't some restriction on bit fields initialization, but didn't see anything special about them. Moreover, everything compiles fine with gcc.
The text was updated successfully, but these errors were encountered: