From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A2A37386186A; Wed, 8 Jul 2020 18:19:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A2A37386186A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594232372; bh=dkkpEGQUpeASzFOur5y5A7gOcc201/+H2Qtz35Gurs0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mE2n9XvooSXDUtJpgzhtnoCaLP5IN43FnRhJjcFcct5QyQekXxISJAGUxukrYCvA/ ET5Bbyy5GWAkOLxshwRz8jiCfvKWxhvdBkpQ94xxHJvfebh/WXNBbmSQlPEs1FtlhH XtytEjNfR1JEb0vmw0wI5Aa05jlj6Ok7Vm3nSjnQ= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95497] [11 Regression] ICE: concepts with a fully known / complete type in requires Date: Wed, 08 Jul 2020 18:19:32 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ppalka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 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: Wed, 08 Jul 2020 18:19:32 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95497 --- Comment #2 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:9eb7d0d76eb652caa9186766da4fe965f113b1b8 commit r11-1947-g9eb7d0d76eb652caa9186766da4fe965f113b1b8 Author: Patrick Palka Date: Wed Jul 8 14:17:47 2020 -0400 c++: ICE in is_really_empty_class [PR95497] We are ICEing in the testcase below because we pass the yet-uninstantiated class type A of the PARM_DECL b to is_really_empty_class from is_rvalue_constant_expression when parsing the requirement t +=3D b. This patch fixes the ICE by guarding the problematic call to is_really_empty_class with a COMPLETE_TYPE_P check, which should also subsume the existing dependent_type_p check. gcc/cp/ChangeLog: PR c++/95497 * constexpr.c (potential_constant_expression_1) : When processing_template_decl, check COMPLETE_TYPE_P before calling is_really_empty_class. Don't check dependent_type_p. gcc/testsuite/ChangeLog: PR c++/95497 * g++.dg/cpp2a/concepts-pr95497.C: New test.=