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++/113629] 'deducing this' does not work with conversion operators
Date: Wed, 06 Mar 2024 09:49:09 +0000	[thread overview]
Message-ID: <bug-113629-4-RVOwOLPWe1@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-113629-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathaniel Shead <nshead@gcc.gnu.org>:

https://gcc.gnu.org/g:49d83e963aa453600088380aebd507e172eb80ad

commit r14-9332-g49d83e963aa453600088380aebd507e172eb80ad
Author: Nathaniel Shead <nathanieloshead@gmail.com>
Date:   Wed Mar 6 00:43:22 2024 +1100

    c++: Fix template deduction for conversion operators with xobj parameters
[PR113629]

    Unification for conversion operators (DEDUCE_CONV) doesn't perform
    transformations like handling forwarding references. This is correct in
    general, but not for xobj parameters, which should be handled "normally"
    for the purposes of deduction: [temp.deduct.conv] only applies to the
    return type of the conversion function.

            PR c++/113629

    gcc/cp/ChangeLog:

            * pt.cc (type_unification_real): Only use DEDUCE_CONV for the
            return type of a conversion function.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp23/explicit-obj-conv-op.C: New test.

    Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
    Reviewed-by: Jason Merrill <jason@redhat.com>

  parent reply	other threads:[~2024-03-06  9:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-27 17:01 [Bug c++/113629] New: " hewillk at gmail dot com
2024-01-27 17:02 ` [Bug c++/113629] " hewillk at gmail dot com
2024-01-27 17:24 ` hewillk at gmail dot com
2024-03-06  9:49 ` cvs-commit at gcc dot gnu.org [this message]
2024-03-06  9:50 ` nshead 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-113629-4-RVOwOLPWe1@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).