public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.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	[thread overview]
Message-ID: <bug-103499-4-pMugj5bhx7@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-103499-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103499

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathan Sidwell <nathan@gcc.gnu.org>:

https://gcc.gnu.org/g:14979dd31c887ba5ba573f2cdb0647b37e09641a

commit r14-5461-g14979dd31c887ba5ba573f2cdb0647b37e09641a
Author: Nathaniel Shead <nathanieloshead@gmail.com>
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 <nathanieloshead@gmail.com>
    Signed-off-by: Nathan Sidwell <nathan@acm.org>

  parent reply	other threads:[~2023-11-14 19:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-30 16:35 [Bug c++/103499] New: " oleg at smolsky dot net
2022-09-02 20:28 ` [Bug c++/103499] " markmigm at gmail dot com
2022-09-03 20:43 ` markmigm at gmail dot com
2022-09-08  4:58 ` markmigm at gmail dot com
2023-06-02 19:27 ` pinskia at gcc dot gnu.org
2023-06-05  8:38 ` redi at gcc dot gnu.org
2023-06-05 13:44 ` markmigm at gmail dot com
2023-11-14 19:43 ` cvs-commit at gcc dot gnu.org [this message]
2024-02-10  4:32 ` nshead at gcc dot gnu.org
2024-03-08 16:03 ` ppalka at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-103499-4-pMugj5bhx7@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).