[Bug c++/104855] -Wclass-memaccess is too broad with valid code

2022-03-14 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104855 Martin Sebor changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/104855] -Wclass-memaccess is too broad with valid code

2022-03-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104855 --- Comment #4 from Jonathan Wakely --- And the former category *should* be in -Wall, but IMHO the latter shouldn't be.

[Bug c++/104855] -Wclass-memaccess is too broad with valid code

2022-03-10 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104855 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2022-03-10 Status|UNCONFI

[Bug c++/104855] -Wclass-memaccess is too broad with valid code

2022-03-10 Thread soap at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104855 --- Comment #2 from David Seifert --- (In reply to Richard Biener from comment #1) > I think the code is definitely "bad style", it seems A lacks a CTOR from > 'unsigned' and the code tries to workaround this issue. > > Not sure whether these k

[Bug c++/104855] -Wclass-memaccess is too broad with valid code

2022-03-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104855 Richard Biener changed: What|Removed |Added Version|unknown |12.0 Keywords|