From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2468F3858418; Sat, 27 Jan 2024 16:10:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2468F3858418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706371824; bh=v2HyKPm8YrhkBjWe0wugD1lDRhxBr9YDYl2h0znfBQ4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GBbV0Y79PnxSVpgbCxHW5b/YrtGlQp+K48m1DZr3Jaqn+yMEAykT5lbQsewzoRAo7 s6vQj4NArUwR1nayjXs+ZZjgWUpq54fIvvaifbJ1wLa9ZWVpLKtRMhMJlkMceG7PSG aHliR58MrZRhjw2LljsdxtJIwDbaRjVpScfJgGUc= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/103994] Module ICE in write_var_def with global variable in global module fragment Date: Sat, 27 Jan 2024 16:10:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org 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: Message-ID: In-Reply-To: References: 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=3D103994 --- Comment #3 from Patrick Palka --- We accept the comment #1 testcase after r14-6979, but still ICE on the orig= inal testcase: cfg.cc:5:9: internal compiler error: in insert, at cp/module.cc:4924 0x77357d trees_out::insert(tree_node*, walk_kind) /home/patrick/gcc/gcc/cp/module.cc:4924 0xb55c50 trees_out::decl_value(tree_node*, depset*) /home/patrick/gcc/gcc/cp/module.cc:7725 0xb5631a trees_out::decl_node(tree_node*, walk_kind) /home/patrick/gcc/gcc/cp/module.cc:8764 0xb57522 trees_out::tree_node(tree_node*) /home/patrick/gcc/gcc/cp/module.cc:9326 0xb5c9b5 module_state::write_cluster(elf_out*, depset**, unsigned int, depset::hash&, unsigned int*, unsigned int*) /home/patrick/gcc/gcc/cp/module.cc:14898 0xb5e82e module_state::write_begin(elf_out*, cpp_reader*, module_state_conf= ig&, unsigned int&) /home/patrick/gcc/gcc/cp/module.cc:18084 0xb5f544 finish_module_processing(cpp_reader*) /home/patrick/gcc/gcc/cp/module.cc:20294 0xaeaea1 c_parse_final_cleanups() /home/patrick/gcc/gcc/cp/decl2.cc:5313 0xd31290 c_common_parse_file() /home/patrick/gcc/gcc/c-family/c-opts.cc:1319 \=