[Bug c/67793] Missing warning for C99 static array dimension mismatch
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Sep 3 23:44:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67793
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |50584
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
(In reply to Markus Trippelsdorf from comment #1)
> In C99 you can add "static" to the array function argument:
>
> extern int func(char x[static 32]);
>
> But unfortunately gcc doesn't warn for this case yet.
Bug 50584 that tracks this feature request.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584
[Bug 50584] No warning for passing small array to C99 static array declarator
More information about the Gcc-bugs
mailing list