From: Thomas Schwinge Date: Mon, 27 Jul 2015 14:26:41 +0000 (+0200) Subject: Fix logic error in Fortran OpenACC parsing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02bcdc56ee26b35137c2c5be74915c6461c9b4cc;p=gcc.git Fix logic error in Fortran OpenACC parsing gcc/fortran/ * parse.c (parse_oacc_structured_block): Fix logic error. Reported by Mikael Morin . From-SVN: r226246 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 0ed6b9bb901..e5b7681fa32 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2015-07-27 Thomas Schwinge + + * parse.c (parse_oacc_structured_block): Fix logic error. + Reported by Mikael Morin . + 2015-07-24 Mikael Morin PR fortran/64986 diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c index 45ad63ff7ee..04b4c80d0e6 100644 --- a/gcc/fortran/parse.c +++ b/gcc/fortran/parse.c @@ -4383,8 +4383,10 @@ parse_oacc_structured_block (gfc_statement acc_st) if (st == ST_NONE) unexpected_eof (); else if (st != acc_end_st) - gfc_error ("Expecting %s at %C", gfc_ascii_statement (acc_end_st)); - reject_statement (); + { + gfc_error ("Expecting %s at %C", gfc_ascii_statement (acc_end_st)); + reject_statement (); + } } while (st != acc_end_st);