Commit 4ab42f46 by David Malcolm Committed by David Malcolm

C++: fix "RT_INTERATION" typo

gcc/cp/ChangeLog:
	* parser.c (enum required_token): Fix spelling of
	RT_INTERATION to RT_ITERATION.
	(cp_parser_iteration_statement): Likewise.
	(cp_parser_required_error): Likewise.

From-SVN: r249931
parent 7001cb1f
2017-07-03 David Malcolm <dmalcolm@redhat.com>
* parser.c (enum required_token): Fix spelling of
RT_INTERATION to RT_ITERATION.
(cp_parser_iteration_statement): Likewise.
(cp_parser_required_error): Likewise.
2017-06-30 Jason Merrill <jason@redhat.com> 2017-06-30 Jason Merrill <jason@redhat.com>
PR c++/81257 - ICE with invalid ::template. PR c++/81257 - ICE with invalid ::template.
......
...@@ -173,7 +173,7 @@ enum required_token { ...@@ -173,7 +173,7 @@ enum required_token {
RT_AT_THROW, /* @throw */ RT_AT_THROW, /* @throw */
RT_SELECT, /* selection-statement */ RT_SELECT, /* selection-statement */
RT_INTERATION, /* iteration-statement */ RT_ITERATION, /* iteration-statement */
RT_JUMP, /* jump-statement */ RT_JUMP, /* jump-statement */
RT_CLASS_KEY, /* class-key */ RT_CLASS_KEY, /* class-key */
RT_CLASS_TYPENAME_TEMPLATE, /* class, typename, or template */ RT_CLASS_TYPENAME_TEMPLATE, /* class, typename, or template */
...@@ -12061,7 +12061,7 @@ cp_parser_iteration_statement (cp_parser* parser, bool *if_p, bool ivdep) ...@@ -12061,7 +12061,7 @@ cp_parser_iteration_statement (cp_parser* parser, bool *if_p, bool ivdep)
token_indent_info guard_tinfo; token_indent_info guard_tinfo;
/* Peek at the next token. */ /* Peek at the next token. */
token = cp_parser_require (parser, CPP_KEYWORD, RT_INTERATION); token = cp_parser_require (parser, CPP_KEYWORD, RT_ITERATION);
if (!token) if (!token)
return error_mark_node; return error_mark_node;
...@@ -28074,7 +28074,7 @@ cp_parser_required_error (cp_parser *parser, ...@@ -28074,7 +28074,7 @@ cp_parser_required_error (cp_parser *parser,
case RT_SELECT: case RT_SELECT:
cp_parser_error (parser, "expected selection-statement"); cp_parser_error (parser, "expected selection-statement");
return; return;
case RT_INTERATION: case RT_ITERATION:
cp_parser_error (parser, "expected iteration-statement"); cp_parser_error (parser, "expected iteration-statement");
return; return;
case RT_JUMP: case RT_JUMP:
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