[Bug c++/101698] [9/10/11 Regression] Template type conversion operator from base class preferred over matching overload

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 13 16:28:30 GMT 2022


--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill


commit r11-9994-g5c6577dcf1d413582775063c905d917e21bf0eba
Author: Jason Merrill <jason@redhat.com>
Date:   Wed Apr 13 14:49:04 2022 -0400

    c++: template conversion op [PR101698]

    Asking for conversion to a dependent type also makes a BASELINK dependent.

            PR c++/101698


            * pt.c (tsubst_baselink): Also check dependent optype.


            * g++.dg/template/conv19.C: New test.

More information about the Gcc-bugs mailing list