[Bug c++/87109] Wrong overload picked with ref-qualifiers

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 5 21:18:00 GMT 2018


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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Sep  5 21:17:47 2018
New Revision: 264132

URL: https://gcc.gnu.org/viewcvs?rev=264132&root=gcc&view=rev
Log:
        PR c++/87109, wrong overload with ref-qualifiers.
        * call.c (build_user_type_conversion_1): Use NULL instead of 0.  Bail
        out if performing the maybe-rvalue overload resolution and a conversion
        function is getting called.

        * g++.dg/cpp0x/ref-qual19.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/ref-qual19.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list