From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C6E0338582A8; Fri, 12 Jan 2024 17:16:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C6E0338582A8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705079817; bh=4CbvGPJJ+99OIZVTXFlaf5egteZJxnZPYNUBsyD6deg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OaH5PTefkDFTYJELQ7Lz87DxNmDfcK7Cou7FanXZS1Hs99hzgVm4HqKTjvdmd8YXP Axw/XMAYX0IkwG/v6SEpLR9kjeNBFDkkFv6CJBNOj9dXJyFAJiQODireEekmPeVJY/ A2/bqQYKvzMHq5KnotWclk3KHmkSMkQ5Ri2ibhSk= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113038] [14 regression] Excess errors for g++.dg/modules/hello-1_b.C after r14-6569-gfe54b57728c09a Date: Fri, 12 Jan 2024 17:16:56 +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: testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason 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=3D113038 --- Comment #3 from GCC Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:27521a2f4f7b859d5656e5bdd69d3f759ea4c23a commit r14-7213-g27521a2f4f7b859d5656e5bdd69d3f759ea4c23a Author: Jason Merrill Date: Mon Dec 18 15:47:10 2023 -0500 c++: __class_type_info and modules [PR113038] Doing a dynamic_cast in both TUs broke because we were declaring a new __class_type_info in _b that conflicted with the one imported in the gl= obal module from _a. It seems clear to me that any new class declaration in the global module should merge with an imported definition, but for GCC= 14 let's just fix this for the specific case of __class_type_info. PR c++/113038 gcc/cp/ChangeLog: * name-lookup.cc (lookup_elaborated_type): Look for bindings in the global namespace in the ABI namespace. gcc/testsuite/ChangeLog: * g++.dg/modules/pr106304_b.C: Add dynamic_cast.=