public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/86521] [8 Regression] GCC 8 selects incorrect overload of ref-qualified conversion operator template
       [not found] <bug-86521-4@http.gcc.gnu.org/bugzilla/>
@ 2023-06-14 14:04 ` cvs-commit at gcc dot gnu.org
  2023-07-11 12:06 ` redi at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-06-14 14:04 UTC (permalink / raw)
  To: gcc-bugs

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

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

https://gcc.gnu.org/g:4ec6b627cb008e31ea3d1ee93a209297f56c6a3e

commit r14-1810-g4ec6b627cb008e31ea3d1ee93a209297f56c6a3e
Author: Jason Merrill <jason@redhat.com>
Date:   Fri Mar 3 15:04:25 2023 -0500

    c++: tweak c++17 ctor/conversion tiebreaker [DR2327]

    In discussion of this issue CWG decided that the change of behavior on
    well-formed code like overload-conv-4.C is undesirable.  In further
    discussion of possible resolutions, we discovered that we can avoid that
    change while still getting the desired behavior on overload-conv-3.C by
    making this a tiebreaker after comparing conversions, rather than before.
    This also simplifies the implementation.

    The issue resolution has not yet been finalized, but this seems like a
clear
    improvement.

            DR 2327
            PR c++/86521

    gcc/cp/ChangeLog:

            * call.cc (joust_maybe_elide_copy): Don't change cand.
            (joust): Move the elided tiebreaker later.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/overload-conv-4.C: Remove warnings.
            * g++.dg/cpp1z/elide7.C: New test.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/86521] [8 Regression] GCC 8 selects incorrect overload of ref-qualified conversion operator template
       [not found] <bug-86521-4@http.gcc.gnu.org/bugzilla/>
  2023-06-14 14:04 ` [Bug c++/86521] [8 Regression] GCC 8 selects incorrect overload of ref-qualified conversion operator template cvs-commit at gcc dot gnu.org
@ 2023-07-11 12:06 ` redi at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2023-07-11 12:06 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |duyang.seu at gmail dot com

--- Comment #19 from Jonathan Wakely <redi at gcc dot gnu.org> ---
*** Bug 89793 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-11 12:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-86521-4@http.gcc.gnu.org/bugzilla/>
2023-06-14 14:04 ` [Bug c++/86521] [8 Regression] GCC 8 selects incorrect overload of ref-qualified conversion operator template cvs-commit at gcc dot gnu.org
2023-07-11 12:06 ` redi at gcc dot gnu.org

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).