Author
anonymous
about 4 years ago
Language
C++
Compiler
gcc HEAD 11.0.1 20210308 (experimental)
Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic
Author
anonymous
about 4 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2b
prog.cc:1:20: internal compiler error: Segmentation fault
1 | template <decltype([]{})> concept C = true;
| ^~~~
0xca6e1f crash_signal
../../source/gcc/toplev.c:327
0x6a46eb begin_function_body()
../../source/gcc/cp/decl.c:17032
0x6dcd7a start_lambda_function(tree_node*, tree_node*)
../../source/gcc/cp/lambda.c:1446
0x7a60e6 tsubst_lambda_expr(tree_node*, tree_node*, int, tree_node*)
../../source/gcc/cp/pt.c:19427
0x78d654 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool)
../../source/gcc/cp/pt.c:20808
0x78f845 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool)
../../source/gcc/cp/pt.c:16140
0x78f845 tsubst(tree_node*, tree_node*, int, tree_node*)
../../source/gcc/cp/pt.c:16140
0x796d1e convert_template_argument
../../source/gcc/cp/pt.c:8496
0x797ecb convert_template_argument
../../source/gcc/cp/pt.c:8264
0x797ecb coerce_template_parms
../../source/gcc/cp/pt.c:8995
0x6740f3 build_variable_check
../../source/gcc/cp/constraint.cc:1410
0x6740f3 build_concept_check(tree_node*, tree_node*, tree_node*, int)
../../source/gcc/cp/constraint.cc:1450
0x674238 build_concept_check(tree_node*, tree_node*, int)
../../source/gcc/cp/constraint.cc:1436
0x674238 build_concept_id
../../source/gcc/cp/constraint.cc:1462
0x674238 build_concept_id(tree_node*)
../../source/gcc/cp/constraint.cc:1475
0x756103 cp_parser_unqualified_id
../../source/gcc/cp/parser.c:6213
0x75088c cp_parser_primary_expression
../../source/gcc/cp/parser.c:5838
0x752e3f cp_parser_primary_expression
../../source/gcc/cp/parser.c:6002
0x752e3f cp_parser_constraint_primary_expression
../../source/gcc/cp/parser.c:28559
0x752e3f cp_parser_constraint_primary_expression
../../source/gcc/cp/parser.c:28541
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Exit Code:
1