From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 24E713858D37; Mon, 23 Oct 2023 12:09:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24E713858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698062963; bh=O9CPkGa8gUEoEWvqojk8sbfTnqHZbCpjzcchBeeI7Jc=; h=From:To:Subject:Date:From; b=CwbEBO92Csd+SQr7EZkcgcQMlodljEBQdmF4InE9jiiv51wZjfMSvP0yIlZYnPjnv 4yL2nGLb9PSk5PylL8pqBrDCGDcVebFMQz41EoLrkkP8o6tM9GLsNHeGX/b4om7UvY GA59bnvuVf1WEqD7STbLtHbJ5MHlwQ4rPzuPLNtM= From: "vincenzo.innocente at cern dot ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111934] New: ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065 Date: Mon, 23 Oct 2023 12:09:22 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vincenzo.innocente at cern dot ch 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 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111934 Bug ID: 111934 Summary: ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vincenzo.innocente at cern dot ch Target Milestone: --- #ifdef ICE #include #endif struct Me { static Me & me() { thread_local auto me =3D std::make_unique_ptr(); return *me; } }; int main() { return 0; } c++ -O3 -Wall -pthread ice13.cpp ice13.cpp: In static member function 'static Me& Me::me()': ice13.cpp:8:33: error: 'make_unique_ptr' is not a member of 'std' 8 | thread_local auto me =3D std::make_unique_ptr(); | ^~~~~~~~~~~~~~~ ice13.cpp:8:51: error: expected primary-expression before '>' token 8 | thread_local auto me =3D std::make_unique_ptr(); | ^ ice13.cpp:8:53: error: expected primary-expression before ')' token 8 | thread_local auto me =3D std::make_unique_ptr(); | ^ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ctest]$ c++ -O3 -Wall -pthread ice13.cpp -DICE ice13.cpp: In static member function 'static Me& Me::me()': ice13.cpp:8:33: error: 'make_unique_ptr' is not a member of 'std' 8 | thread_local auto me =3D std::make_unique_ptr(); | ^~~~~~~~~~~~~~~ ice13.cpp:8:51: error: expected primary-expression before '>' token 8 | thread_local auto me =3D std::make_unique_ptr(); | ^ ice13.cpp:8:53: error: expected primary-expression before ')' token 8 | thread_local auto me =3D std::make_unique_ptr(); | ^ ice13.cpp: At global scope: ice13.cpp:8:23: internal compiler error: in discriminator_for_local_entity,= at cp/mangle.cc:2065 8 | thread_local auto me =3D std::make_unique_ptr(); | ^~ 0x7de25d discriminator_for_local_entity ../../gcc_src/gcc/cp/mangle.cc:2065 0xb92a4a write_local_name ../../gcc_src/gcc/cp/mangle.cc:2164 0xb92a4a write_name ../../gcc_src/gcc/cp/mangle.cc:1071 0xb94e46 write_encoding ../../gcc_src/gcc/cp/mangle.cc:864 0xb94f5b write_mangled_name ../../gcc_src/gcc/cp/mangle.cc:810 0xb95740 mangle_decl_string ../../gcc_src/gcc/cp/mangle.cc:4092 0xb9592a get_mangled_id ../../gcc_src/gcc/cp/mangle.cc:4113 0xb9592a mangle_decl(tree_node*) ../../gcc_src/gcc/cp/mangle.cc:4151 0x16512bd decl_assembler_name(tree_node*) ../../gcc_src/gcc/tree.cc:715 0xe4a329 symbol_table::insert_to_assembler_name_hash(symtab_node*, bool) ../../gcc_src/gcc/symtab.cc:175 0xe4a48c symbol_table::symtab_initialize_asm_name_hash() ../../gcc_src/gcc/symtab.cc:267 0xe4ae84 symbol_table::symtab_initialize_asm_name_hash() ../../gcc_src/gcc/symtab.cc:1078 0xe4ae84 symtab_node::get_for_asmname(tree_node const*) ../../gcc_src/gcc/symtab.cc:1066 0xe5fc61 handle_alias_pairs ../../gcc_src/gcc/cgraphunit.cc:1528 0xe64fa7 symbol_table::finalize_compilation_unit() ../../gcc_src/gcc/cgraphunit.cc:2541 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions.=