From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A9D163858D33; Wed, 8 Nov 2023 05:29:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9D163858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699421354; bh=hDYtrh95IwPz8f8tXacf90yS5SvaJXPnje0DXLYlEjU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vNn8aLXpom+DOLz6osRGH3EkOjG6wtI1Tll3ImC6i5zFuoHrqVDTAqnSjTt/SUcBM rSicEtsdQBzfnhwAl5ORGnTLdGuRwQg43CIi6Dr8hCk+QWtMxx+foxL4ROZbSd06oN V1dcQ5/TxP9YNdTlDgVBqvcXnfLRK/W0oxMqU8fw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/112437] ICE with throw inside concept sometimes and -std=c++20 Date: Wed, 08 Nov 2023 05:29:13 +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: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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=3D112437 --- Comment #2 from Andrew Pinski --- The backtrace: ``` t55.cc:4:37: internal compiler error: Segmentation fault 4 | concept Throwable =3D requires(T x) { throw x; }; | ^~~~~~~ 0x133b01f crash_signal /home/apinski/src/upstream-gcc-git/gcc/gcc/toplev.cc:316 0x7f18dce54def ??? =20=20=20=20=20=20=20 /usr/src/debug/glibc-2.34-60.el9.x86_64/signal/../sysdeps/unix/sysv/linux/x= 86_64/libc_sigaction.c:0 0xcf7fa2 treat_lvalue_as_rvalue_p(tree_node*, bool) /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/typeck.cc:10732 0xb5d62f build_throw(unsigned int, tree_node*) /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/except.cc:723 0xc70ede tsubst_expr(tree_node*, tree_node*, int, tree_node*) /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/pt.cc:20944 0xac70d3 tsubst_valid_expression_requirement /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:1990 0xace475 tsubst_simple_requirement /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2024 0xace475 tsubst_requirement /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2221 0xace475 tsubst_requires_expr /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2351 0xacea6a tsubst_requires_expr(tree_node*, tree_node*, int, tree_node*) /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:2370 0xc6fad5 tsubst_expr(tree_node*, tree_node*, int, tree_node*) /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/pt.cc:21472 0xacfc1e satisfy_atom /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:3036 0xacfc1e satisfy_constraint_r /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:3101 0xad0202 satisfy_normalized_constraints /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:3126 0xacd3ce satisfy_nondeclaration_constraints /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:3208 0xacd3ce constraint_satisfaction_value /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:3373 0xad02e6 evaluate_concept_check(tree_node*) /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constraint.cc:3421 0xab2f60 cxx_eval_constant_expression /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constexpr.cc:8346 0xabc7d9 cxx_eval_outermost_constant_expr /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constexpr.cc:8670 0xac2612 maybe_constant_init_1 /home/apinski/src/upstream-gcc-git/gcc/gcc/cp/constexpr.cc:9181 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. ```=