[Bug middle-end/94985] False-positive -Warray-bounds for char[1] on a non-zero offset in a referenced buffer

2020-05-07 Thread joeyjyliu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94985 --- Comment #2 from Joey Liu --- Just fyi, the patch attached in this ticket is slightly different than the patch in the mailing list (I limit it to flexible array only). It can handle the existing test cases (no regressions). However I do think

[Bug c++/94985] New: False-positive -Warray-bounds for char[1] on a non-zero offset in a referenced buffer

2020-05-07 Thread joeyjyliu at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: joeyjyliu at gmail dot com Target Milestone: --- Created attachment 48474 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48474=edit patch for -Warray-bou