re PR fortran/24176 (gfortran segfaults on empty source)
authorRichard Guenther <rguenther@suse.de>
Wed, 5 Oct 2005 09:38:29 +0000 (09:38 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 5 Oct 2005 09:38:29 +0000 (09:38 +0000)
commitc82cdb5dfc2b9e85dbe577e32d73dc8fd6062afe
tree034cc559b3d9cde4cc25da4ee9c8b410d2600533
parent1767cc4fa9f79b88c8dbde260e1fc16101a937e4
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
gcc/fortran/ChangeLog
gcc/fortran/parse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/compile/empty.f90 [new file with mode: 0644]