[Bug c++/101698] [9/10/11/12 Regression] Template type conversion operator from base class preferred over matching overload
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 14 00:24:37 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101698
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:d4e00ccef6c706a4a4a6446bffaf4111f98d5771
commit r12-8151-gd4e00ccef6c706a4a4a6446bffaf4111f98d5771
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.cc (tsubst_baselink): Also check dependent optype.
gcc/testsuite/ChangeLog:
* g++.dg/template/conv19.C: New test.
More information about the Gcc-bugs
mailing list