Author
anonymous
about 6 years ago
Language
C++
Compiler
gcc HEAD 9.0.1 20190210 (experimental)
Options
Warnings
Boost 1.69.0
C++2a(GNU)
no pedantic
Author
anonymous
about 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int foo(int)':
prog.cc:7:21: internal compiler error: unexpected expression 'id' of kind overload
7 | return int{id(v)};
| ^
0x60b671 cxx_eval_constant_expression
../../source/gcc/cp/constexpr.c:5001
0x6076e7 cxx_eval_call_expression
../../source/gcc/cp/constexpr.c:1544
0x60918c cxx_eval_constant_expression
../../source/gcc/cp/constexpr.c:4362
0x60cdb4 cxx_eval_outermost_constant_expr
../../source/gcc/cp/constexpr.c:5115
0x60d2f8 maybe_constant_value(tree_node*, tree_node*, bool)
../../source/gcc/cp/constexpr.c:5347
0x730aeb check_narrowing(tree_node*, tree_node*, int, bool)
../../source/gcc/cp/typeck2.c:926
0x6fc7d5 finish_compound_literal(tree_node*, tree_node*, int, fcl_t)
../../source/gcc/cp/semantics.c:2830
0x69430d cp_parser_functional_cast
../../source/gcc/cp/parser.c:28211
0x6a4ce4 cp_parser_postfix_expression
../../source/gcc/cp/parser.c:7088
0x6b1d49 cp_parser_unary_expression
../../source/gcc/cp/parser.c:8459
0x68f96f cp_parser_cast_expression
../../source/gcc/cp/parser.c:9345
0x690179 cp_parser_binary_expression
../../source/gcc/cp/parser.c:9447
0x690f47 cp_parser_assignment_expression
../../source/gcc/cp/parser.c:9744
0x69129a cp_parser_expression
../../source/gcc/cp/parser.c:9911
0x69f5b2 cp_parser_jump_statement
../../source/gcc/cp/parser.c:12845
0x69f5b2 cp_parser_statement
../../source/gcc/cp/parser.c:11126
0x69fc18 cp_parser_statement_seq_opt
../../source/gcc/cp/parser.c:11592
0x69fcd0 cp_parser_compound_statement
../../source/gcc/cp/parser.c:11546
0x6b6501 cp_parser_function_body
../../source/gcc/cp/parser.c:22562
0x6b6501 cp_parser_ctor_initializer_opt_and_function_body
../../source/gcc/cp/parser.c:22599
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