From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6A3E83898032; Wed, 18 Nov 2020 23:51:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A3E83898032 From: "florin.iucha at amd dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/97899] New: internal compiler error: in split_nonconstant_init_1, at cp/typeck2.c:626 Date: Wed, 18 Nov 2020 23:51:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: florin.iucha at amd dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2020 23:51:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97899 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=3D49589&action=3Dedit 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=3Dc++17 -O3 -c pack-fail.cpp pack-fail.cpp: In member function 'int Baz::otherTest()': pack-fail.cpp:37:58: internal compiler error: in split_nonconstant_init_1, = at cp/typeck2.c:626 37 | const auto address =3D 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 for instructions. Source code for pack-fail.cpp is attached.=