From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 348E1386C58A; Fri, 17 Jun 2022 03:12:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 348E1386C58A From: "overlord624 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106009] New: [modules] internal compiler error: in mark_by_value, at cp/module.cc:4775 Date: Fri, 17 Jun 2022 03:12:19 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: overlord624 at gmail 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: Fri, 17 Jun 2022 03:12:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106009 Bug ID: 106009 Summary: [modules] internal compiler error: in mark_by_value, at cp/module.cc:4775 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: overlord624 at gmail dot com Target Milestone: --- Created attachment 53158 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53158&action=3Dedit output with -freport-bug Trying to compile the spdlog library to a header unit causes an internal compiler error. Adding -save-temps to the parameters causes the same error,= but the compiler claims the error is non-reproducible. No errors occur when the same header is included in the global module fragment of a regular module. $ g++-exp -freport-bug -fmodules-ts -std=3Dc++20 -Wall -Wextra -pedantic -DSPDLOG_COMPILED_LIB -x c++-system-header spdlog/spdlog.h /usr/include/spdlog/spdlog.h: internal compiler error: in mark_by_value, at cp/module.cc:4775 0x7112a2 trees_out::mark_by_value(tree_node*) /media/extra/sources/gcc/gcc/cp/module.cc:4775 0xabe961 trees_out::mark_declaration(tree_node*, bool) /media/extra/sources/gcc/gcc/cp/module.cc:12245 0xabebd9 trees_out::mark_class_def(tree_node*) /media/extra/sources/gcc/gcc/cp/module.cc:11744 0xac859d depset::hash::find_dependencies(module_state*) /media/extra/sources/gcc/gcc/cp/module.cc:13126 0xac8cc0 module_state::write_begin(elf_out*, cpp_reader*, module_state_conf= ig&, unsigned int&) /media/extra/sources/gcc/gcc/cp/module.cc:17640 0xac9f84 finish_module_processing(cpp_reader*) /media/extra/sources/gcc/gcc/cp/module.cc:19962 0xa58c85 c_parse_final_cleanups() /media/extra/sources/gcc/gcc/cp/decl2.cc:5156 0xc7ab60 c_common_parse_file() /media/extra/sources/gcc/gcc/c-family/c-opts.cc:1253 Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See for instructions. Preprocessed source stored into /tmp/cc4TWK1u.out file, please attach this = to your bugreport. $ g++-exp -v Using built-in specs. COLLECT_GCC=3Dg++-exp COLLECT_LTO_WRAPPER=3D/media/extra/libexec/gcc/x86_64-pc-linux-gnu/13.0.0/l= to-wrapper Target: x86_64-pc-linux-gnu Configured with: /media/extra/sources/gcc/configure --host=3Dx86_64-pc-linu= x-gnu --prefix=3D/media/extra --disable-multilib --enable-threads --enable-tls --enable-languages=3Dc,c++ --disable-nls Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.0 20220616 (experimental) (GCC)=