https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104235
--- 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:00d8321124123daf41f7c51526355a5a610cdeb8 commit r12-6879-g00d8321124123daf41f7c51526355a5a610cdeb8 Author: Jason Merrill <ja...@redhat.com> Date: Wed Jan 26 10:40:42 2022 -0500 c++: ->template and using-decl [PR104235] cp_parser_template_id wasn't prepared to handle getting a USING_DECL back from cp_parser_template_name. Let's defer that case to instantiation time, as well. PR c++/104235 gcc/cp/ChangeLog: * parser.cc (cp_parser_template_name): Repeat lookup of USING_DECL. gcc/testsuite/ChangeLog: * g++.dg/parse/template-keyword2.C: New test.