From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A13B13858C2F; Tue, 14 Nov 2023 19:43:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A13B13858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699991017; bh=dxXLQAUhlT/KtNW6ydBD+hn+8OD9z1ZQe+uusXhetJ4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Sqpn2M9A1EVfeio90OyipmGy5ZZoq1hsIABS5BtguriH+USWKUAPSfh72W5CwffNt XlcBa6/GYOE20TLl4GXoxleiq7I4RN5lRjkfGSJRDsAuhbnXzg9itHBmVre5mycrLj zdyg+TzRaTJgW0sfo7OA55ez1XqQmw8HPgD9NO0M= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/103499] C++20 modules error: invalid use of non-static member function Date: Tue, 14 Nov 2023 19:43:34 +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: 11.2.0 X-Bugzilla-Keywords: ice-checking, 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: --- 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=3D103499 --- Comment #7 from CVS Commits --- The master branch has been updated by Nathan Sidwell : https://gcc.gnu.org/g:14979dd31c887ba5ba573f2cdb0647b37e09641a commit r14-5461-g14979dd31c887ba5ba573f2cdb0647b37e09641a Author: Nathaniel Shead Date: Tue Nov 14 11:26:03 2023 -0500 c++: Stream virtual dtor vtable indices Virtual cloned functions have distinct vtable indices, stream them explicitly. As such, this patch ensures that DECL_VINDEX is properly passed on for cloned functions as well to prevent this from causing issues. PR c++/103499 gcc/cp/ChangeLog: * module.cc (trees_out::decl_node): Write DECL_VINDEX for virtual clones. (trees_in::tree_node): Read DECL_VINDEX for virtual clones. gcc/testsuite/ChangeLog: * g++.dg/modules/pr103499_a.C: New test. * g++.dg/modules/pr103499_b.C: New test. Signed-off-by: Nathaniel Shead Signed-off-by: Nathan Sidwell =