https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107361
--- Comment #2 from Carlos Galvez <carlosgalvezp at gmail dot com> --- I understand the motivation and I think the warning makes a lot of sense! However I don't see how it could possibly be dangerous in the provided example. Would it suffice to trigger the warning only when a class has ctors/dtors/copy/move, which seems to be the intended use case?