From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 618C9385E836; Thu, 2 May 2024 06:43:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 618C9385E836 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714632200; bh=3yrPHfrKvKKumTuK1XjNHWdOBTMaWrT7yYBbQUjEYvk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HLo3z9sMjhTz8Xg72h3dsjHuFGk1QFtxyeCFv7zPYAsEtRnAqo1CiPeDdvVYgWRzW Eu2co7EloIDDLSemPbkmUowDmX8gdTRItgqZTLMg+LzlnwpZjt46A2o6evKU+hOYzR 6Wr1LlujoQT46najNfl4OSQXzJc9FlSy0Mj1hR5o= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114630] [14/15 Regression] [modules] building module with submodule causes corrupt gcm Date: Thu, 02 May 2024 06:43:18 +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: 14.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D114630 --- Comment #8 from GCC Commits --- The master branch has been updated by Nathaniel Shead : https://gcc.gnu.org/g:02917ac4528e32d1b2d0da5f45ef5937c56942cd commit r15-101-g02917ac4528e32d1b2d0da5f45ef5937c56942cd Author: Nathaniel Shead Date: Thu Apr 11 19:15:35 2024 +1000 c++: Don't emit unused GMF partial specializations [PR114630] The change in r14-8408 to also emit partial specializations in the global module fragment caused the regression in the linked PR; this patch fixes this by restricting emitted GM partial specializations to those that are actually used. PR c++/114630 gcc/cp/ChangeLog: * module.cc (depset::hash::add_partial_entities): Mark GM specializations as unreached. (depset::hash::find_dependencies): Also reach entities in the DECL_TEMPLATE_SPECIALIZATIONS list. gcc/testsuite/ChangeLog: * g++.dg/modules/partial-3.C: New test. Signed-off-by: Nathaniel Shead =