From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E3BD23896010; Thu, 17 Dec 2020 23:06:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E3BD23896010 From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98363] New: C++ 20 module ICE for fast_io library Date: Thu, 17 Dec 2020 23:06:24 +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: unlvsur at live 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 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: Thu, 17 Dec 2020 23:06:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98363 Bug ID: 98363 Summary: C++ 20 module ICE for fast_io library Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- g++ -c hello.cc -Ofast -std=3Dc++20 -s -fmodules-ts -flto hello.cc module; #include export module hello; export inline void greeter (std::string_view name) noexcept { print(name); } cqwrteur@Home-Server:~/myhome/test_module$ g++ -c hello.cc -Ofast -std=3Dc+= +20 -s -fmodules-ts -flto hello.cc:3:8: internal compiler error: Segmentation fault 3 | export module hello; | ^~~~~~ 0x10b2b4f crash_signal ../../gcc/gcc/toplev.c:327 0x9fe347 has_definition ../../gcc/gcc/cp/module.cc:11361 0xa104a7 depset::hash::make_dependency(tree_node*, depset::entity_kind) ../../gcc/gcc/cp/module.cc:12531 0xa10b84 depset::hash::add_dependency(tree_node*, depset::entity_kind) ../../gcc/gcc/cp/module.cc:12669 0xa17bda trees_out::decl_node(tree_node*, walk_kind) ../../gcc/gcc/cp/module.cc:8569 0xa18342 trees_out::tree_node(tree_node*) ../../gcc/gcc/cp/module.cc:9132 0xa1ac96 trees_out::tpl_parms_fini(tree_node*, unsigned int) ../../gcc/gcc/cp/module.cc:9888 0xa16603 trees_out::decl_value(tree_node*, depset*) ../../gcc/gcc/cp/module.cc:7742 0xa1e16b depset::hash::find_dependencies() ../../gcc/gcc/cp/module.cc:13181 0xa1e7c4 module_state::write(elf_out*, cpp_reader*) ../../gcc/gcc/cp/module.cc:17550 0xa1fa55 finish_module_processing(cpp_reader*) ../../gcc/gcc/cp/module.cc:19728 0x9b41eb c_parse_final_cleanups() ../../gcc/gcc/cp/decl2.c:5170 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=