From 4ab42f4628a252095797dc8a29ddb327c40e8577 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 3 Jul 2017 17:49:09 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 7 +++++++ gcc/cp/parser.c | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index eeeaeec5363..47548775e0a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2017-07-03 David Malcolm + + * 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 PR c++/81257 - ICE with invalid ::template. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index a9623ae0841..3ea7c42ec1a 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 */ @@ -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: -- 2.30.2