Commit c82cdb5d by Richard Guenther Committed by Richard Biener

re PR fortran/24176 (gfortran segfaults on empty source)

2005-10-05  Richard Guenther  <rguenther@suse.de>

	PR fortran/24176
	* parse.c (gfc_parse_file): Exit early for empty files.

	* gfortran.fortran-torture/compile/empty.f90: New testcase.

From-SVN: r104984
parent 1767cc4f
2005-10-05 Richard Guenther <rguenther@suse.de>
PR fortran/24176
* parse.c (gfc_parse_file): Exit early for empty files.
2005-10-03 Steve Ellcey <sje@cup.hp.com>
* fortran/trans-types.c (gfc_init_kinds): Only pass float, double,
......
......@@ -2560,6 +2560,10 @@ gfc_parse_file (void)
seen_program = 0;
/* Exit early for empty files. */
if (gfc_at_eof ())
goto done;
loop:
gfc_init_2 ();
st = next_statement ();
......
2005-10-05 Richard Guenther <rguenther@suse.de>
PR fortran/24176
* gfortran.fortran-torture/compile/empty.f90: New testcase.
2005-10-05 Nathan Sidwell <nathan@codesourcery.com>
PR c++/23513
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