[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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101698
--- Comment #4 from CVS 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:5c6577dcf1d413582775063c905d917e21bf0eba
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
gcc/cp/ChangeLog:
* pt.c (tsubst_baselink): Also check dependent optype.
gcc/testsuite/ChangeLog:
* g++.dg/template/conv19.C: New test.
More information about the Gcc-bugs
mailing list