[Bug c/63233] Missing Warray-bounds warning for array within struct

2014-09-13 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63233 --- Comment #6 from Mikael Pettersson mikpelinux at gmail dot com --- (In reply to leis from comment #5) Fundamentally, what I'm really trying to do, is to have two arrays (of different types) in a fixed-sized struct. One array grows from the

[Bug c/63233] Missing Warray-bounds warning for array within struct

2014-09-11 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63233 Manuel López-Ibáñez manu at gcc dot gnu.org changed: What|Removed |Added Keywords||diagnostic

[Bug c/63233] Missing Warray-bounds warning for array within struct

2014-09-11 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63233 --- Comment #3 from Manuel López-Ibáñez manu at gcc dot gnu.org --- (In reply to Andrew Pinski from comment #1) This is not a valid out of bounds access in C. Sometime it might be better to acknowledge where GCC could help rather than simply

[Bug c/63233] Missing Warray-bounds warning for array within struct

2014-09-11 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63233 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug c/63233] Missing Warray-bounds warning for array within struct

2014-09-11 Thread leis at in dot tum.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63233 --- Comment #5 from leis at in dot tum.de --- Thanks. I did notice that I get warning with optimization but not without, which is strange indeed. However, obviously my real problem is more complicated, and I'm trying to understand if I violate