[Bug c++/104855] -Wclass-memaccess is too broad with valid code
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 10 08:37:44 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104855
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|unknown |12.0
Keywords| |diagnostic
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
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 kind of "style" diagnostics should be in -Wall
More information about the Gcc-bugs
mailing list