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++/114562] [11/12 Regression] ICE when trying to bind rvalue reference to lvalue with comma operator and forwarding reference to pointer since r10-7410
Date: Fri, 24 May 2024 13:27:52 +0000	[thread overview]
Message-ID: <bug-114562-4-8ATc8ng3ML@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-114562-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:

https://gcc.gnu.org/g:b35afe75674ff9f79cf9685d099bc80f10442216

commit r11-11446-gb35afe75674ff9f79cf9685d099bc80f10442216
Author: Jason Merrill <jason@redhat.com>
Date:   Tue Apr 2 10:52:28 2024 -0400

    c++: binding reference to comma expr [PR114561]

    We represent a reference binding where the referent type is more qualified
    by a ck_ref_bind around a ck_qual.  We performed the ck_qual and then tried
    to undo it with STRIP_NOPS, but that doesn't work if the conversion is
    buried in COMPOUND_EXPR.  So instead let's avoid performing that fake
    conversion in the first place.

            PR c++/114561
            PR c++/114562

    gcc/cp/ChangeLog:

            * call.c (convert_like_internal): Avoid adding qualification
            conversion in direct reference binding.

    gcc/testsuite/ChangeLog:

            * g++.dg/conversion/ref10.C: New test.
            * g++.dg/conversion/ref11.C: New test.

    (cherry picked from commit 5d7e9a35024f065b25f61747859c7cb7a770c92b)

  parent reply	other threads:[~2024-05-24 13:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-02 10:15 [Bug c++/114562] New: ICE when trying to bind rvalue reference to lvalue with comma operator and forwarding reference to pointer Liam.Jackson@qa-systems.com
2024-04-02 14:35 ` [Bug c++/114562] [11/12/13/14 Regression] ICE when trying to bind rvalue reference to lvalue with comma operator and forwarding reference to pointer since r10-7410 jakub at gcc dot gnu.org
2024-04-02 14:50 ` jason at gcc dot gnu.org
2024-04-02 18:11 ` cvs-commit at gcc dot gnu.org
2024-05-01 20:31 ` [Bug c++/114562] [11/12/13 " cvs-commit at gcc dot gnu.org
2024-05-24 13:26 ` [Bug c++/114562] [11/12 " cvs-commit at gcc dot gnu.org
2024-05-24 13:27 ` cvs-commit at gcc dot gnu.org [this message]
2024-05-24 13:30 ` jason 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-114562-4-8ATc8ng3ML@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).