https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68831
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org --- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> --- This seems to fix it: diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 5ecf9fb..0f36e1a 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -4439,6 +4440,7 @@ build_delete (tree otype, tree addr, special_function_kind auto_delete, else { /* Handle deleting a null pointer. */ + warning_sentinel s (warn_address); ifexp = fold (cp_build_binary_op (input_location, NE_EXPR, addr, nullptr_node, complain));