https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79790

--- Comment #3 from Jochen Görtler <jochen.goert...@uni-konstanz.de> ---
This is the error:

template_class_deduction.cpp: In function ‘int main()’:
template_class_deduction.cpp:4:29: error: class template argument deduction
failed:
     std::array test = {1,2,3};
                             ^
template_class_deduction.cpp:4:29: internal compiler error: Segmentation fault
0xd6c37f crash_signal
        ../../gcc-bug/gcc/toplev.c:337
0x61021e print_error_for_call_failure
        ../../gcc-bug/gcc/cp/call.c:4170
0x610e3a build_new_function_call(tree_node*, vec<tree_node*, va_gc,
vl_embed>**, bool, int)
        ../../gcc-bug/gcc/cp/call.c:4224
0x68be54 do_class_deduction
        ../../gcc-bug/gcc/cp/pt.c:25217
0x68be54 do_auto_deduction(tree_node*, tree_node*, tree_node*, int,
auto_deduction_context, tree_node*, int)
        ../../gcc-bug/gcc/cp/pt.c:25270
0x648972 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        ../../gcc-bug/gcc/cp/decl.c:6835
0x727c53 cp_parser_init_declarator
        ../../gcc-bug/gcc/cp/parser.c:19375
0x74bd0c cp_parser_simple_declaration
        ../../gcc-bug/gcc/cp/parser.c:12772
0x74cab5 cp_parser_block_declaration
        ../../gcc-bug/gcc/cp/parser.c:12597
0x74d569 cp_parser_declaration_statement
        ../../gcc-bug/gcc/cp/parser.c:12207
0x725893 cp_parser_statement
        ../../gcc-bug/gcc/cp/parser.c:10694
0x72692d cp_parser_statement_seq_opt
        ../../gcc-bug/gcc/cp/parser.c:11026
0x7269ff cp_parser_compound_statement
        ../../gcc-bug/gcc/cp/parser.c:10980
0x726b93 cp_parser_function_body
        ../../gcc-bug/gcc/cp/parser.c:21427
0x726b93 cp_parser_ctor_initializer_opt_and_function_body
        ../../gcc-bug/gcc/cp/parser.c:21465
0x727411 cp_parser_function_definition_after_declarator
        ../../gcc-bug/gcc/cp/parser.c:26252
0x7280fd cp_parser_function_definition_from_specifiers_and_declarator
        ../../gcc-bug/gcc/cp/parser.c:26164
0x7280fd cp_parser_init_declarator
        ../../gcc-bug/gcc/cp/parser.c:19154
0x74bd0c cp_parser_simple_declaration
        ../../gcc-bug/gcc/cp/parser.c:12772
0x74cab5 cp_parser_block_declaration
        ../../gcc-bug/gcc/cp/parser.c:12597
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.

Reply via email to