C++: fix "RT_INTERATION" typo
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 3 Jul 2017 17:49:09 +0000 (17:49 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 3 Jul 2017 17:49:09 +0000 (17:49 +0000)
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

gcc/cp/ChangeLog
gcc/cp/parser.c

index eeeaeec5363ee2de500570b661641e6e78144dd5..47548775e0af7ccbe1315bc3ef28137f678b571f 100644 (file)
@@ -1,3 +1,10 @@
+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>
 
        PR c++/81257 - ICE with invalid ::template.
index a9623ae08410b904210d856c74410890cf4bf6e3..3ea7c42ec1a9bea1baf761df5969ce85ff9b6daf 100644 (file)
@@ -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 */
@@ -12061,7 +12061,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;
 
@@ -28074,7 +28074,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: