[Bug c++/92893] Unhelpful -Wstringop-overflow warning

2019-12-10 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92893 --- Comment #2 from Martin Sebor --- Defining Str like so works for the test case: struct Str { template Str(Cat c) { struct Flex { char c, a[]; } *p = (Flex*)get(); c.add(p->a); } }; by changing the IL the warning sees to: [l

[Bug c++/92893] Unhelpful -Wstringop-overflow warning

2019-12-10 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92893 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED