From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 606D6385841B; Mon, 27 Sep 2021 18:50:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 606D6385841B From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86689] [9/10/11/12 Regression] Some combination of SFINAE, overloading, and type deduction showing version inconsistency Date: Mon, 27 Sep 2021 18:50:49 +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: 8.2.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka 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: 9.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc target_milestone everconfirmed cf_known_to_fail bug_status cc cf_known_to_work cf_reconfirmed_on 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: Mon, 27 Sep 2021 18:50:49 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86689 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Some combination of SFINAE, |[9/10/11/12 Regression] |overloading, and type |Some combination of SFINAE, |deduction showing version |overloading, and type |inconsistency |deduction showing version | |inconsistency Target Milestone|--- |9.5 Ever confirmed|0 |1 Known to fail| |10.3.0, 11.2.0, 12.0, | |8.5.0, 9.4.0 Status|UNCONFIRMED |NEW CC| |jason at gcc dot gnu.org, | |ppalka at gcc dot gnu.org Known to work| |7.5.0 Last reconfirmed| |2021-09-27 --- Comment #1 from Patrick Palka --- Confirmed, started with r8-7014. Slightly more reduced rejects-valid testc= ase: template struct SomeClassTemplate {}; struct TrueType { static constexpr bool value =3D true; }; template struct EnableIfT {}; template struct EnableIfT { using type =3D T; }; template struct IsAType : TrueType {}; template ::value,int>:= :type> int SomeFunc(T const&); template ::value,int>:= :type> int SomeFunc(SomeClassTemplate const&) { return -1; } template int SomeFunc(SomeClassTemplate const&); :16:14: error: ambiguous template specialization =E2=80=98SomeFunc<>= =E2=80=99 for =E2=80=98int SomeFunc(const SomeClassTemplate&)=E2=80=99 :11:5: note: candidates are: =E2=80=98template int SomeFunc(const T&)=E2=80=99 :14:5: note: =E2=80=98template int SomeFunc(const SomeClassTemplate&)=E2=80=99=