]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: dependent conversion operator lookup [PR106179]
authorJason Merrill <jason@redhat.com>
Tue, 5 Jul 2022 21:05:47 +0000 (17:05 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 6 Jul 2022 04:40:16 +0000 (00:40 -0400)
commit656c0212909bc91b1025aa12774d981adb531b4c
tree72186a6e8656750e48a23437aeaad13398ce9196
parentd1f3a3fffeb40e646ec5a643783cd753fa7def33
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.
gcc/cp/parser.cc
gcc/testsuite/g++.dg/template/operator16.C [new file with mode: 0644]