[Bug c++/112437] ICE with throw inside concept sometimes and -std=c++20
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 8 05:29:13 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112437
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The backtrace:
```
t55.cc:4:37: internal compiler error: Segmentation fault
4 | concept Throwable = requires(T x) { throw x; };
| ^~~~~~~
0x133b01f crash_signal
/home/apinski/src/upstream-gcc-git/gcc/gcc/toplev.cc:316
0x7f18dce54def ???
/usr/src/debug/glibc-2.34-60.el9.x86_64/signal/../sysdeps/unix/sysv/linux/x86_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 <https://gcc.gnu.org/bugs/> for instructions.
```
More information about the Gcc-bugs
mailing list