Commit d773ed85 by Tobias Burnus Committed by Tobias Burnus

parse.c (gfc_parse_file): Fix two-location gfc_error call.

2015-01-24  Tobias Burnus  <burnus@net-b.de>

        * parse.c (gfc_parse_file): Fix two-location gfc_error call.

From-SVN: r220084
parent 8790f572
2015-01-24 Tobias Burnus <burnus@net-b.de>
* parse.c (gfc_parse_file): Fix two-location gfc_error call.
2015-01-23 Martin Liska <mliska@suse.cz> 2015-01-23 Martin Liska <mliska@suse.cz>
* decl.c (attr_decl1): Workaround -Wmaybe-uninitialized * decl.c (attr_decl1): Workaround -Wmaybe-uninitialized
......
...@@ -5544,7 +5544,7 @@ duplicate_main: ...@@ -5544,7 +5544,7 @@ duplicate_main:
/* If we see a duplicate main program, shut down. If the second /* If we see a duplicate main program, shut down. If the second
instance is an implied main program, i.e. data decls or executable instance is an implied main program, i.e. data decls or executable
statements, we're in for lots of errors. */ statements, we're in for lots of errors. */
gfc_error ("Two main PROGRAMs at %L and %C", &prog_locus); gfc_error_1 ("Two main PROGRAMs at %L and %C", &prog_locus);
reject_statement (); reject_statement ();
gfc_done_2 (); gfc_done_2 ();
return true; return true;
......
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