Fix logic error in Fortran OpenACC parsing
gcc/fortran/ * parse.c (parse_oacc_structured_block): Fix logic error. Reported by Mikael Morin <mikael.morin@sfr.fr>. From-SVN: r226246
This commit is contained in:
parent
39c1254139
commit
02bcdc56ee
@ -1,3 +1,8 @@
|
||||
2015-07-27 Thomas Schwinge <thomas@codesourcery.com>
|
||||
|
||||
* parse.c (parse_oacc_structured_block): Fix logic error.
|
||||
Reported by Mikael Morin <mikael.morin@sfr.fr>.
|
||||
|
||||
2015-07-24 Mikael Morin <mikael@gcc.gnu.org>
|
||||
|
||||
PR fortran/64986
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user