https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97899
Bug ID: 97899 Summary: internal compiler error: in split_nonconstant_init_1, at cp/typeck2.c:626 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: florin.iucha at amd dot com Target Milestone: --- Created attachment 49589 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49589&action=edit c++ source code gcc version 11.0.0 20201115 (experimental) (GCC) built from c746fc40f4ec8cfc1092efd49d567751858d2099 (equivalent to https://gcc.gnu.org/pub/gcc/snapshots/LATEST-11/gcc-11-20201115.tar.xz) Backtrace: $ /opt/gcc11-for-tng/bin/g++-11 -std=c++17 -O3 -c pack-fail.cpp pack-fail.cpp: In member function 'int Baz<Foo>::otherTest()': pack-fail.cpp:37:58: internal compiler error: in split_nonconstant_init_1, at cp/typeck2.c:626 37 | const auto address = uint64_t{packUint(low, high)}; | ^ 0x7224d6 split_nonconstant_init_1 ../../gcc/gcc/cp/typeck2.c:626 0xb3238f split_nonconstant_init(tree_node*, tree_node*) ../../gcc/gcc/cp/typeck2.c:657 0x99ac66 check_initializer ../../gcc/gcc/cp/decl.c:6909 0x9bebcd cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) ../../gcc/gcc/cp/decl.c:7699 0xa69587 cp_parser_init_declarator ../../gcc/gcc/cp/parser.c:21362 0xa475a3 cp_parser_simple_declaration ../../gcc/gcc/cp/parser.c:13943 0xa63dfd cp_parser_declaration_statement ../../gcc/gcc/cp/parser.c:13342 0xa4935f cp_parser_statement ../../gcc/gcc/cp/parser.c:11588 0xa4a46d cp_parser_statement_seq_opt ../../gcc/gcc/cp/parser.c:11954 0xa4a548 cp_parser_compound_statement ../../gcc/gcc/cp/parser.c:11904 0xa63f65 cp_parser_function_body ../../gcc/gcc/cp/parser.c:23551 0xa63f65 cp_parser_ctor_initializer_opt_and_function_body ../../gcc/gcc/cp/parser.c:23602 0xa68800 cp_parser_function_definition_after_declarator ../../gcc/gcc/cp/parser.c:29492 0xa68c4c cp_parser_late_parsing_for_member ../../gcc/gcc/cp/parser.c:30394 0xa4482b cp_parser_class_specifier_1 ../../gcc/gcc/cp/parser.c:24664 0xa45723 cp_parser_class_specifier ../../gcc/gcc/cp/parser.c:24688 0xa45723 cp_parser_type_specifier ../../gcc/gcc/cp/parser.c:17943 0xa466b9 cp_parser_decl_specifier_seq ../../gcc/gcc/cp/parser.c:14565 0xa70215 cp_parser_single_declaration ../../gcc/gcc/cp/parser.c:29888 0xa70596 cp_parser_template_declaration_after_parameters ../../gcc/gcc/cp/parser.c:29552 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. Source code for pack-fail.cpp is attached.