Commit 7905174
committed
MSVC compat - static not supported in declaration
The C99 static in array declarator in function array list (`foo(int
a[static 3])`) is not supported by MSVC, which doesn't implement C99.
Suprisingly, [1] states: "When you specify /std:c11 or /std:c17, MSVC
supports all the features of C11 and C17 required by the standards." but
this doesn't seem to be correct for this feature (MSVS 2022).
[1]: https://learn.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=msvc-1701 parent ec2b40e commit 7905174
2 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
74 | 81 | | |
75 | 82 | | |
76 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
| 305 | + | |
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
| |||
0 commit comments