[Bug tree-optimization/102151] Spurious warning by -Warray-bounds when allocating with flexible array member

2021-09-01 Thread gniibe at fsij dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102151 --- Comment #4 from Niibe Yutaka --- Thank you for the explanation. I understand how (current version of) GCC warns. >From the viewpoint of use of structure with flexible array member, still, this could be considered as a bug of GCC, because t

[Bug c/102151] Spurious warning by -Warray-bounds when allocating with flexible array member

2021-08-31 Thread gniibe at fsij dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102151 Niibe Yutaka changed: What|Removed |Added CC||gniibe at fsij dot org --- Comment #1 fr

[Bug c/102151] New: Spurious warning by -Warray-bounds when allocating with flexible array member

2021-08-31 Thread gniibe at fsij dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102151 Bug ID: 102151 Summary: Spurious warning by -Warray-bounds when allocating with flexible array member Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity