===================================================================
@@ -8295,7 +8295,8 @@ grokfndecl (tree ctype,
else if (DECL_DEFAULTED_FN (old_decl))
{
error ("definition of explicitly-defaulted %q+D", decl);
- error ("%q+#D explicitly defaulted here", old_decl);
+ inform (DECL_SOURCE_LOCATION (old_decl),
+ "%q#D explicitly defaulted here", old_decl);
return NULL_TREE;
}
===================================================================
@@ -4,7 +4,7 @@
struct A
{
A() { } // { dg-message "defined" }
- ~A() = default; // { dg-error "defaulted" }
+ ~A() = default; // { dg-message "defaulted" }
};
A::A() = default; // { dg-error "redefinition" }