This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/67793] Missing warning for C99 static array dimension mismatch


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]