Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic
Raw compiler options
-std=c++20
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=gnu++2a -std=c++20
prog.cc: In function 'int main()':
prog.cc:18:53: internal compiler error: unexpected expression '<anonymous>' of kind template_parm_index
18 | static_assert( IsImplementationOf< Y< X(0) >, Y > );
| ^
0x633a22 cxx_eval_constant_expression
../../gcc-10.1.0/gcc/cp/constexpr.c:6458
0x633dd0 cxx_eval_outermost_constant_expr
../../gcc-10.1.0/gcc/cp/constexpr.c:6665
0x6370a5 maybe_constant_value(tree_node*, tree_node*, bool, bool)
../../gcc-10.1.0/gcc/cp/constexpr.c:6953
0x69493d fold_for_warn(tree_node*)
../../gcc-10.1.0/gcc/cp/expr.c:413
0x7b3ffb check_function_restrict
../../gcc-10.1.0/gcc/c-family/c-common.c:5413
0x7b3ffb check_function_arguments(unsigned int, tree_node const*, tree_node const*, int, tree_node**, vec<unsigned int, va_heap, vl_ptr>*)
../../gcc-10.1.0/gcc/c-family/c-common.c:5753
0x61144b build_over_call
../../gcc-10.1.0/gcc/cp/call.c:8871
0x612cbc build_new_function_call(tree_node*, vec<tree_node*, va_gc, vl_embed>**, int)
../../gcc-10.1.0/gcc/cp/call.c:4611
0x718af9 do_class_deduction
../../gcc-10.1.0/gcc/cp/pt.c:28860
0x718af9 do_auto_deduction(tree_node*, tree_node*, tree_node*, int, auto_deduction_context, tree_node*, int)
../../gcc-10.1.0/gcc/cp/pt.c:28918
0x71cb35 unify
../../gcc-10.1.0/gcc/cp/pt.c:23278
0x71c85b unify
../../gcc-10.1.0/gcc/cp/pt.c:23470
0x71d0a6 coerce_template_template_parms
../../gcc-10.1.0/gcc/cp/pt.c:7887
0x719a7e convert_template_argument
../../gcc-10.1.0/gcc/cp/pt.c:8327
0x72ca6f convert_template_argument
../../gcc-10.1.0/gcc/cp/pt.c:8168
0x72ca6f coerce_template_parms
../../gcc-10.1.0/gcc/cp/pt.c:8899
0x72f251 lookup_template_class_1
../../gcc-10.1.0/gcc/cp/pt.c:9737
0x73049c lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int, int)
../../gcc-10.1.0/gcc/cp/pt.c:10109
0x74cc3d finish_template_type(tree_node*, tree_node*, int)
../../gcc-10.1.0/gcc/cp/semantics.c:3408
0x6f47dd cp_parser_template_id
../../gcc-10.1.0/gcc/cp/parser.c:16734
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