https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106179
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:656c0212909bc91b1025aa12774d981adb531b4c commit r13-1516-g656c0212909bc91b1025aa12774d981adb531b4c Author: Jason Merrill <ja...@redhat.com> Date: Tue Jul 5 17:05:47 2022 -0400 c++: dependent conversion operator lookup [PR106179] This testcase demonstrates that my assumption that we would only be interested in a class template lookup if the template-id is followed by :: was wrong. PR c++/106179 PR c++/106024 gcc/cp/ChangeLog: * parser.cc (cp_parser_lookup_name): Remove :: requirement for using unqualified lookup result. gcc/testsuite/ChangeLog: * g++.dg/template/operator16.C: New test.