From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BD2263858C5E; Thu, 12 Oct 2023 13:15:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD2263858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697116527; bh=0qB28F5YvJUIfafqHbCSF3vlIb80Wtl49lNovbj3UxU=; h=From:To:Subject:Date:From; b=YeoTrcsF+dBYx5nypFKf0AatvG7spu0taPQE3riGlqaRBP1MK2bI8du+8zpGY2vw/ UyZmXC24pD04yplsaqL6DF++jKMI4SntTYElRsVEbSzuUe5nDHhSkIbYN5Vzb2Xnj4 zrllGJjn3mo/9JgSzX0L4nbM97bUTZ9v0YK25m9k= From: "mends-sputter.0z at icloud dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111785] New: [modules] ICE when compiling fmt lib as module Date: Thu, 12 Oct 2023 13:15:26 +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: mends-sputter.0z at icloud 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111785 Bug ID: 111785 Summary: [modules] ICE when compiling fmt lib as module Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mends-sputter.0z at icloud dot com Target Milestone: --- Created attachment 56095 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56095&action=3Dedit preprocessed output generated by -freport-bug GCC 14.0 from recent snapshot (20231008) on aarch64 Using built-in specs. COLLECT_GCC=3Dg++ COLLECT_LTO_WRAPPER=3D/opt/gcc14/libexec/gcc/aarch64-unknown-linux-gnu/14.0= .0/lto-wrapper Target: aarch64-unknown-linux-gnu Configured with: ../configure --prefix=3D/opt/gcc14 --enable-languages=3Dc,= c++ --disable-multilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 20231008 (experimental) (GCC) When attempting to build fmt from https://github.com/fmtlib/fmt, with the following command: g++ -std=3Dc++20 -fmodules-ts -I../include fmt.cc The compiler ICEs with the following error: fmt.cc:73:8: internal compiler error: in core_vals, at cp/module.cc:6262 73 | export module fmt; | ^ 0x9a9b67 trees_out::core_vals(tree_node*) ../../gcc/cp/module.cc:6262 0x9add5f trees_out::tree_node_vals(tree_node*) ../../gcc/cp/module.cc:7218 0x9add5f trees_out::tree_value(tree_node*) ../../gcc/cp/module.cc:9083 0x9a7c73 trees_out::tree_node(tree_node*) ../../gcc/cp/module.cc:9281 0x9a9537 trees_out::core_vals(tree_node*) ../../gcc/cp/module.cc:6171 0x9a5fb3 trees_out::tree_node_vals(tree_node*) ../../gcc/cp/module.cc:7218 0x9a5fb3 trees_out::decl_value(tree_node*, depset*) ../../gcc/cp/module.cc:7797 0x9b0823 depset::hash::find_dependencies(module_state*) ../../gcc/cp/module.cc:13328 0x9b16c7 module_state::write_begin(elf_out*, cpp_reader*, module_state_conf= ig&, unsigned int&) ../../gcc/cp/module.cc:17895 0x9b2a0f finish_module_processing(cpp_reader*) ../../gcc/cp/module.cc:20241 0x91df57 c_parse_final_cleanups() ../../gcc/cp/decl2.cc:5255 0xbe773f c_common_parse_file() ../../gcc/c-family/c-opts.cc:1296 attaching the file generated by -freport-bug - compressed with the gzip too= l. Note that this is similar and involves the same file as reported in this ot= her in a comment in a separate report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108080#c7 however with gcc 14.0 snapshots, this fails with every level of optimization flags, although in each case the crash dump is slightly different and fails= on a separate line.=