Re: [PATCH] relax -Wclass-memaccess for class members (PR 84850)

2018-03-20 Thread Jason Merrill
OK. On Mon, Mar 19, 2018 at 10:06 PM, Martin Sebor wrote: > The -Wclass-memaccess warning makes an exception for ctors and > dtors of non-trivial classes with no bases to avoid triggering > for uses of raw memory functions with this as the destination. > All other members as well as non-members t

[PATCH] relax -Wclass-memaccess for class members (PR 84850)

2018-03-19 Thread Martin Sebor
The -Wclass-memaccess warning makes an exception for ctors and dtors of non-trivial classes with no bases to avoid triggering for uses of raw memory functions with this as the destination. All other members as well as non-members trigger the warning. In bug 84850 the reporter shows that some code