https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111230
Bug ID: 111230 Summary: show explicit functions in possible candidates Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- struct T { T() { } // #1 explicit T(const T&) { } // #2 }; void g () { T t{}; throw t; } shows h.C: In function ‘void g()’: h.C:10:10: error: no matching function for call to ‘T::T(T)’ 10 | throw t; | ^ h.C:2:4: note: candidate: ‘T::T()’ 2 | T() { } // #1 | ^ h.C:2:4: note: candidate expects 0 arguments, 1 provided h.C:10:10: note: in thrown expression 10 | throw t; | ^ but it never mentions #2.