Commit 3d4de231 by Jason Merrill Committed by Jason Merrill

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.

From-SVN: r249855
parent fb6a764d
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.
......
......@@ -15911,11 +15911,6 @@ cp_parser_template_name (cp_parser* parser,
/*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. */
// PR c++/81257
template < typename ::template A < int > >; // { dg-error "" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment