r159808 (aka c247dce0f0ab6cbd1ac41cbca6b40b5d46a73f41) introduced
the required_token enum to the C++ frontend, but contained a minor
spelling mistake when expecting an iteration-statement, which this
patch fixes.

Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.

Committed to trunk as r249931, under the "obvious" rule.

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.
---
 gcc/cp/parser.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 4adf9aa..1ee3ffe 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -173,7 +173,7 @@ enum required_token {
   RT_AT_THROW, /* @throw */
 
   RT_SELECT,  /* selection-statement */
-  RT_INTERATION, /* iteration-statement */
+  RT_ITERATION, /* iteration-statement */
   RT_JUMP, /* jump-statement */
   RT_CLASS_KEY, /* class-key */
   RT_CLASS_TYPENAME_TEMPLATE, /* class, typename, or template */
@@ -11929,7 +11929,7 @@ cp_parser_iteration_statement (cp_parser* parser, bool 
*if_p, bool ivdep)
   token_indent_info guard_tinfo;
 
   /* 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)
     return error_mark_node;
 
@@ -27906,7 +27906,7 @@ cp_parser_required_error (cp_parser *parser,
          case RT_SELECT:
            cp_parser_error (parser, "expected selection-statement");
            return;
-         case RT_INTERATION:
+         case RT_ITERATION:
            cp_parser_error (parser, "expected iteration-statement");
            return;
          case RT_JUMP:
-- 
1.8.5.3

Reply via email to