https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78948
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Related questions: Are uses of deleted functions ok in discarded stmts? Should we warn about uses of deprecated functions/vars in discarded stmts? Shall we ever set DECL_ODR_USED on odr-used decls in discarded stmts?