[Bug c/50584] No warning for passing small array to C99 static array declarator

2015-07-03 Thread sergei.ivn+bugzilla at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 --- Comment #10 from Serg Iv --- Some thoughts after I read C99 rationale. Actually, [static N] it's a PROMISE to a compiler, that programmer will always provide N pieces of data. *ALWAYS*. Therefore compiler can do with this data whatever it wa

[Bug c/50584] No warning for passing small array to C99 static array declarator

2015-07-02 Thread sergei.ivn+bugzilla at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 --- Comment #8 from Serg Iv --- Forgot to say that C99 standard has the same sentences. Useful links: C99 draft http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf C11 draft http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1570.pdf

[Bug c/50584] No warning for passing small array to C99 static array declarator

2015-07-02 Thread sergei.ivn+bugzilla at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 Serg Iv changed: What|Removed |Added CC||sergei.ivn+bugzilla at gmail dot c