PR c++/54769 - wrong lookup of dependent template-name.
* parser.c (cp_parser_template_name): Revert part of last change.
From-SVN: r249855
+2017-06-30 Jason Merrill <jason@redhat.com>
+
+ PR c++/81257 - ICE with invalid ::template.
+ PR c++/54769 - wrong lookup of dependent template-name.
+ * parser.c (cp_parser_template_name): Revert part of last change.
+
2017-06-30 Nathan Sidwell <nathan@acm.org>
* config-lang.in (gtfiles): Add cp/lex.c.
/*ambiguous_decls=*/NULL,
token->location);
- /* If the lookup failed and we got the 'template' keyword, believe it. */
- if (decl == error_mark_node && template_keyword_p
- && processing_template_decl)
- return identifier;
-
decl = strip_using_decl (decl);
/* If DECL is a template, then the name was a template-name. */
--- /dev/null
+// PR c++/81257
+
+template < typename ::template A < int > >; // { dg-error "" }