From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B95B93857C6D; Fri, 1 Oct 2021 10:06:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B95B93857C6D From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99] Bug in template type in error message. Date: Fri, 01 Oct 2021 10:06:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 2.95.2 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cc Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2021 10:06:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.or= g, | |egallager at gcc dot gnu.o= rg --- Comment #24 from Eric Gallager --- (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #22) > Perhaps the only solution is to not pretty-print the candidates, which is > exactly what clang does: >=20 > pr99.cc:8:10: error: call to 'f' is ambiguous > return f(X(), X()); > ^ > pr99.cc:4:26: note: candidate function [with Q =3D int] > template int f(X, X); > ^ > pr99.cc:5:26: note: candidate function [with B =3D int] > template int f(X, X); > ^ >=20 > Dodji, as the diagnostics maintainer, would that be an acceptable fix? While Dodji is still technically listed as a diagnostics maintainer, David Malcolm has been more active as such lately, so I'm cc-ing him, too, to ask him...=