https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88245

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
The inform call already uses DECL_SOURCE_LOCATION but that's bogus:

 9288           else if (DECL_DEFAULTED_FN (old_decl))
 9289             {
 9290               error ("definition of explicitly-defaulted %q+D", decl);
 9291               inform (DECL_SOURCE_LOCATION (old_decl),
 9292                       "%q#D explicitly defaulted here", old_decl);
 9293               return NULL_TREE;

so that's what we'll have to improve.

Reply via email to