c++: template-id with current inst qualifier [PR102300]
authorJason Merrill <jason@redhat.com>
Tue, 18 Jan 2022 23:28:22 +0000 (18:28 -0500)
committerJason Merrill <jason@redhat.com>
Thu, 20 Jan 2022 03:42:17 +0000 (22:42 -0500)
commit30f2c22def7392119f1ffaca30ef998b3b43f336
tree9535dd5b2946c772b0e9d1fd93988362a4dac103
parent64655e7bdbea6b922f1f759eb9f1730b5e57029f
c++: template-id with current inst qualifier [PR102300]

The patch for PR41723 properly changed one place to look into the current
instantiation; now we need to fix this place as well.

PR c++/102300

gcc/cp/ChangeLog:

* parser.cc (cp_parser_template_name): Use dependent_scope_p.

gcc/testsuite/ChangeLog:

* g++.dg/parse/no-typename1.C: Remove expected error.
* g++.dg/template/nested7.C: New test.
gcc/cp/parser.cc
gcc/testsuite/g++.dg/parse/no-typename1.C
gcc/testsuite/g++.dg/template/nested7.C [new file with mode: 0644]