-
Notifications
You must be signed in to change notification settings - Fork 225
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
Support for gnu extension flexible array initializer #264
Labels
Comments
This is actually not standard C99 but rather a gnu extension. You also get a warning if you compile it with |
bschommer
changed the title
Support for extensible structures ending with empty-length arrays
Support for gnu extension flexible array initializer
Jan 28, 2019
I changed the title to reflect the real problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example code:
This is a common idiom used at the end of structures, making their size variable. This is the expected output on GCC or Clang:
With CompCert 3.4, it doesn't compile:
error: initializer element is not a compile-time constant (wrong number of elements in array initializer)
The text was updated successfully, but these errors were encountered: