[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 --- (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 front, > and one from the e

[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 th

[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 changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[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 --- (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 close the bug saying to u

[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 changed: What|Removed |Added Keywords||diagnostic Status|RESO