[Bug c++/101698] [9 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 17:41:55 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101698
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:de0b78d1e75e9483b4550abc38b9199c96465dc5
commit r9-10174-gde0b78d1e75e9483b4550abc38b9199c96465dc5
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