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

2020-09-21 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 --- Comment #21 from CVS Commits --- The master branch has been updated by Martin Sebor : https://gcc.gnu.org/g:05193687dde2e5a6337164182a1946b584acfada commit r11--g05193687dde2e5a6337164182a1946b584acfada Author: Martin Sebor Date: Mon

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

2020-09-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 Martin Sebor changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

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

2020-09-19 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 --- Comment #18 from CVS Commits --- The master branch has been updated by Martin Sebor : https://gcc.gnu.org/g:baad4c48a85a354d2bf1b17e5aff71203c08adea commit r11-3305-gbaad4c48a85a354d2bf1b17e5aff71203c08adea Author: Martin Sebor Date: Sat

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

2020-09-19 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 --- Comment #19 from CVS Commits --- The master branch has been updated by Martin Sebor : https://gcc.gnu.org/g:3f9a497d1b0dd9da87908a11b59bf364ad40ddca commit r11-3306-g3f9a497d1b0dd9da87908a11b59bf364ad40ddca Author: Martin Sebor Date: Sat

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

2020-09-19 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 --- Comment #17 from CVS Commits --- The master branch has been updated by Martin Sebor : https://gcc.gnu.org/g:6450f07388f9fe575a489c9309c36012b17b88b0 commit r11-3303-g6450f07388f9fe575a489c9309c36012b17b88b0 Author: Martin Sebor Date: Sat

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

2020-07-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #16 from Martin Sebor

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

2020-05-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 Martin Sebor changed: What|Removed |Added Status|NEW |ASSIGNED Last reconfirmed|2015-07-03 00

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

2017-05-16 Thread fredrik.hederstie...@securitas-direct.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 Fredrik Hederstierna changed: What|Removed |Added CC||fredrik.hederstierna@securi

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

2016-09-12 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 Markus Trippelsdorf changed: What|Removed |Added CC||drepper.fsp+rhbz at gmail dot com

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

2016-01-07 Thread nsz at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 nsz at gcc dot gnu.org changed: What|Removed |Added CC||nsz at gcc dot gnu.org --- Comme

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

2015-07-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 --- Comment #11 from joseph at codesourcery dot com --- On Fri, 3 Jul 2015, sergei.ivn+bugzilla at gmail dot com wrote: > Some excerpts from the C11 standard: > > /- > If the keyword static also appears within the [ and ] of the array type

[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-03 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 Manuel López-Ibáñez changed: What|Removed |Added Keywords||diagnostic Status|UNCO

[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

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

2014-04-10 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment #

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

2014-04-10 Thread jimis at gmx dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 jimis changed: What|Removed |Added CC||jimis at gmx dot net --- Comment #5 from jimis -

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

2013-09-25 Thread me at minglis dot id.au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 --- Comment #4 from Malcolm Inglis --- I don't have a copy of the C99 standard, but IBM says [1] that if the function is called with a pointer to a smaller array than specified with `static`, then the behavior is undefined. Ergo, there should be a

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

2013-08-21 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 --- Comment #3 from joseph at codesourcery dot com --- The point of this language feature is for optimization, not diagnostics - but there is no requirement for either; GCC does all the checks required by C99 on the contexts in which [static] ma

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

2013-08-13 Thread me at minglis dot id.au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 Malcolm Inglis changed: What|Removed |Added CC||me at minglis dot id.au --- Comment #2 f

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

2013-02-18 Thread andi-gcc at firstfloor dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50584 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot