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++/97974] [9/10/11 Regression] ICE tree check: expected overload, have function_decl in get_class_binding_direct, at cp/name-lookup.c:1332
Date: Sun, 11 Apr 2021 03:52:29 +0000	[thread overview]
Message-ID: <bug-97974-4-3CL0bR7SbF@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-97974-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:

https://gcc.gnu.org/g:936d500dfc17f58f2507ecd0f7f26e4f197052ee

commit r11-8120-g936d500dfc17f58f2507ecd0f7f26e4f197052ee
Author: Jason Merrill <jason@redhat.com>
Date:   Sat Apr 10 14:00:15 2021 -0400

    c++: ICE with anonymous union [PR97974]

    Here lookup got confused by finding a conversion operator from
    lookup_anon_field.  Let's avoid this by pruning functions from
    CLASSTYPE_MEMBER_VEC as well as TYPE_FIELDS.

    gcc/cp/ChangeLog:

            PR c++/97974
            * decl.c (fixup_anonymous_aggr): Prune all functions from
            CLASSTYPE_MEMBER_VEC.

    gcc/testsuite/ChangeLog:

            PR c++/97974
            * g++.dg/lookup/pr84962.C: Adjust diagnostic.
            * g++.dg/other/anon-union5.C: New test.

  parent reply	other threads:[~2021-04-11  3:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-24 18:32 [Bug c++/97974] New: " gscfq@t-online.de
2020-11-25  8:11 ` [Bug c++/97974] " marxin at gcc dot gnu.org
2020-11-25  8:20 ` rguenth at gcc dot gnu.org
2021-04-10 15:12 ` jason at gcc dot gnu.org
2021-04-11  3:52 ` cvs-commit at gcc dot gnu.org [this message]
2021-04-12 19:49 ` [Bug c++/97974] [9/10 " jason at gcc dot gnu.org
2021-04-29 18:42 ` cvs-commit at gcc dot gnu.org
2021-06-01  8:19 ` rguenth at gcc dot gnu.org
2022-05-27  9:43 ` [Bug c++/97974] [10 " rguenth at gcc dot gnu.org
2022-06-28 10:42 ` jakub at gcc dot gnu.org
2023-07-07  9:13 ` rguenth 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-97974-4-3CL0bR7SbF@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).