From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A704A3858D37; Thu, 30 Nov 2023 18:48:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A704A3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701370126; bh=XwhG+PZ+TppQ9njX0W2VsmFk83mKlo9AcCmbYEeB6aI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=evHUboVZ3ptz8GLbwTrsmpTXwAavHe1+Cqp1xlS4Ye+ROYizGulixO46AwO5L99Tp msL9dMxWGEgtZ3viZcesLQ8eOniV5JiMOFd19V52ZvozlCGZ4lbQAV1I1y2UZ+Nbyz 1NQ5ZZaEclevuk8mIuQkYULBDfqyuKWqM1RjdJAo= From: "janpmoeller at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/112769] ICE on valid code related to requires-expression Date: Thu, 30 Nov 2023 18:48:46 +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: 13.2.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: janpmoeller at gmx dot de 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112769 --- Comment #1 from janpmoeller at gmx dot de --- The following equivalent program does not trigger the ICE: ////////////////////////////////////////////////////////////// template concept C =3D requires (U u) { T{u}; }; template struct type { constexpr explicit type(T value) { } template constexpr explicit type(type value) requires C> { } }; template using alias =3D type<0, T>; constexpr alias foo{123}; //////////////////////////////////////////////////////////////=