From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 869AB38708CE; Thu, 27 Aug 2020 12:47:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 869AB38708CE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598532467; bh=IV5lENXBV3Bg8hOmQUPjubx5P5RzgEMjtqkgeplIqtA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=slIidPVy1cR2lCxxm8Z+gsgbzOhYIkrTZwnsxHIsqOQ35pdsYIF3Oi8KbOISFVVdY iWQhtvTvIzC/YXe1aNiQ48rASjzZlzSYNuEE9nxNc5ctwm/SqMV+GPEBqVZWm7EdST piwAUIo/ioxJ+ojoeOKLtgLi9tw49MztC5jnH8ho= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96355] [10/11 Regression] [concepts] internal compiler error: in tsubst_pack_expansion, at cp/pt.c:12928 Date: Thu, 27 Aug 2020 12:47:47 +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: 10.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: 10.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, 27 Aug 2020 12:47:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96355 --- Comment #3 from Jonathan Wakely --- (In reply to Robert Douglas from comment #1) > I've also hit this issue in upgrading from 9.1 to 10.2 >=20 > I presume it run into the same issue, but if it helps, this more closely > matches my use case: > https://godbolt.org/z/zb1bP5 That code: template concept ParamsRemain =3D requires(Params) { requires sizeof...(Params) > 0; }; template void foo() { static constexpr bool pr1 =3D ParamsRemain; }; int main() { foo<>(); return 0; } compiles with GCC 9 and -std=3Dc++2a -fconcepts compiles with GCC 10.1 and -std=3Dc++2a ice-on-valid-code with GCC 10.2.0, 10.2.1 and 11.0 with -std=3Dc++2a=