-
Notifications
You must be signed in to change notification settings - Fork 230
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
static qualifier in array parameter declaration #531
Comments
xavierleroy
added a commit
that referenced
this issue
Nov 29, 2024
E.g. `int x[static 10]` or `int x [*]`. Treated like `int x[10]` and `int x[]` respectively. Fixes: #531
Tentative fix at #539. |
xavierleroy
added a commit
that referenced
this issue
Nov 30, 2024
E.g. `int x[static 10]` or `int x [*]`. Treated like `int x[10]` and `int x[]` respectively. Fixes: #531
xavierleroy
added a commit
that referenced
this issue
Dec 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
C99 §6.7.5.3-7 states that
static
in an array parameter declaration meansThus the following should be accepted:
I suspect the simplest is to ignore this keyword. (Technically, one could use it to convey semantic information that the area pointed to should be accessible for a certain length, thus allowing some optimizations such as speculatively loading values, but this would require quite a bit of work…)
The text was updated successfully, but these errors were encountered: