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++/101072] [12 Regression] ICE in build_target_expr_with_type,  at cp/tree.c:845 since r11-5681-gd9288bd28e24c755
Date: Sun, 23 Jan 2022 03:19:07 +0000	[thread overview]
Message-ID: <bug-101072-4-QDzazXnrsu@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-101072-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #5 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:053bcc97f4a59e3f2811b8a1edf60fd733a580a0

commit r12-6821-g053bcc97f4a59e3f2811b8a1edf60fd733a580a0
Author: Jason Merrill <jason@redhat.com>
Date:   Thu Jan 20 05:45:02 2022 -0500

    c++: constexpr and -fno-elide-constructors [PR101072]

    We've been trying for a while to avoid TARGET_EXPRs in template code, but
    there were still a few that snuck through, and the one in this case broke
    the code that tried to handle it.  Fixed by using IMPLICIT_CONV_EXPR, as we
    have done elsewhere.

    I also noticed that finish_compound_literal was assuming that all T{init}
    were for aggregate T, and we got a few more TARGET_EXPRs from that.  Fixed
    by only messing with TARGET_EXPR if we actually have an aggregate init.

            PR c++/101072

    gcc/cp/ChangeLog:

            * cp-tree.h (build_implicit_conv_flags): Declare.
            * call.cc (build_implicit_conv_flags): Split out from...
            (perform_implicit_conversion_flags): ...here.
            * decl.cc (check_initializer): Use it.
            * pt.cc (tsubst_copy_and_build): Remove TARGET_EXPR handling.
            * semantics.cc (finish_compound_literal): Don't treat
            scalar values like CONSTRUCTORs.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/constexpr-empty14a.C: New test.

  parent reply	other threads:[~2022-01-23  3:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-14 17:23 [Bug c++/101072] New: [11/12 Regression] ICE in build_target_expr_with_type, at cp/tree.c:845 gscfq@t-online.de
2021-06-15  7:22 ` [Bug c++/101072] [11/12 Regression] ICE in build_target_expr_with_type, at cp/tree.c:845 since r11-5681-gd9288bd28e24c755 marxin at gcc dot gnu.org
2021-06-15  7:53 ` rguenth at gcc dot gnu.org
2021-07-07 21:38 ` jason at gcc dot gnu.org
2021-07-07 22:50 ` cvs-commit at gcc dot gnu.org
2021-07-07 22:50 ` [Bug c++/101072] [12 " jason at gcc dot gnu.org
2021-07-28  7:07 ` rguenth at gcc dot gnu.org
2021-12-28 23:48 ` pinskia at gcc dot gnu.org
2022-01-23  3:19 ` cvs-commit at gcc dot gnu.org [this message]
2022-01-23 22:33 ` jason at gcc dot gnu.org
2022-01-26 19:27 ` cvs-commit 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-101072-4-QDzazXnrsu@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).