PR c++/54769 - wrong lookup of dependent template-name.
authorJason Merrill <jason@redhat.com>
Wed, 28 Jun 2017 19:41:36 +0000 (15:41 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 28 Jun 2017 19:41:36 +0000 (15:41 -0400)
commit1e5f79b61994f8ffccad62a58031f5937aa16ae3
tree1e5d3318974175db33c79d031a615b55c79ef74d
parentdc3b932e33b703b0163fd6383f26e6c44fe68c6a
PR c++/54769 - wrong lookup of dependent template-name.

* parser.c (cp_parser_template_name): Handle dependent object type.
(cp_parser_nested_name_specifier_opt): Make template_keyword_p a
parameter.
(cp_parser_id_expression): Pass it.
(cp_parser_diagnose_invalid_type_name): Handle TEMPLATE_ID_EXPR.

From-SVN: r249752
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/template/lookup11.C [new file with mode: 0644]