Commit 02bcdc56 by Thomas Schwinge Committed by Thomas Schwinge

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
parent 39c12541
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> 2015-07-24 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/64986 PR fortran/64986
......
...@@ -4383,8 +4383,10 @@ parse_oacc_structured_block (gfc_statement acc_st) ...@@ -4383,8 +4383,10 @@ parse_oacc_structured_block (gfc_statement acc_st)
if (st == ST_NONE) if (st == ST_NONE)
unexpected_eof (); unexpected_eof ();
else if (st != acc_end_st) 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); while (st != acc_end_st);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment