This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/67793] Missing warning for C99 static array dimension mismatch
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 03 Sep 2016 23:44:34 +0000
- Subject: [Bug c/67793] Missing warning for C99 static array dimension mismatch
- Auto-submitted: auto-generated
- References: <bug-67793-4@http.gcc.gnu.org/bugzilla/>
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