From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2D3863858D28; Tue, 29 Aug 2023 21:42:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D3863858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693345353; bh=ji5/lQtkj4udMP7/7YAVztZej01O+HeqASjXvBbWs7Y=; h=From:To:Subject:Date:From; b=gTjAaywo6hy4dRaNPg2ynPRkHhzJ6MZYLpnk/H93nIyXz2Pzm5zYVeCe3SqznhTax /6ZfCCoOlLEyyLuzQsuugEcIhugYv38kA1lyVA7WupB/OFfZGiKm9ThEkLXS4WvB4H lPFah5h8CY/k5tdm6xKcLPzzQEG9Jz4IjJk3LN7I= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111230] New: show explicit functions in possible candidates Date: Tue, 29 Aug 2023 21:42:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111230 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 =E2=80=98void g()=E2=80=99: h.C:10:10: error: no matching function for call to =E2=80=98T::T(T)=E2=80=99 10 | throw t; | ^ h.C:2:4: note: candidate: =E2=80=98T::T()=E2=80=99 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.=