From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B3BC23858402; Thu, 9 Dec 2021 18:54:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B3BC23858402 From: "dangelog at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/102396] [11/12 Regression] ICE when using concepts, in get, at cp/constraint.cc:2637 since r11-6245-g79f57d5cb070bb02 Date: Thu, 09 Dec 2021 18:54:21 +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: 12.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dangelog at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: Thu, 09 Dec 2021 18:54:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102396 --- Comment #4 from Giuseppe D'Angelo --- To elaborate on the last comment, this testcase does complain about the redefinition.=20 #include #include template class S; template static inline std::true_type is_S_impl(const S&); static inline std::false_type is_S_impl(...); template concept is_S =3D decltype(is_S_impl(std::declval()))::value; template struct S { using type =3D T; T data; S(); explicit S(const T &); template requires is_S && (!is_S) && std::equality_comparable_with friend bool operator=3D=3D(const V &v, const U &u) { return v.data = =3D=3D u; } }; void f() { S s1; s1 =3D=3D 123; S s2; s2 =3D=3D 123.4; }=