]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: template conversion op [PR101698]
authorJason Merrill <jason@redhat.com>
Wed, 13 Apr 2022 18:49:04 +0000 (14:49 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 13 May 2022 16:32:20 +0000 (12:32 -0400)
commitf06e1ff97cb383118afed4c87dfa104e7c4b141d
treec87bfe4948af41ba707ddbd3e66a0089787aaa41
parent54d1992376d7880a88778dab20a7cfe8cde32bc3
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.
gcc/cp/pt.c
gcc/testsuite/g++.dg/template/conv19.C [new file with mode: 0644]