From e983d070ffe4b39f128988ca3797cfaad6f8a695 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Coudert Date: Thu, 11 May 2006 23:37:10 +0200 Subject: re PR fortran/27553 ([4.1 only] Testsuite ICE with -Wunused-labels) PR fortran/27553 * parse.c (next_free): Return instead of calling decode_statement upon error. * gfortran.dg/label_5.f90: New test. From-SVN: r113712 --- gcc/fortran/ChangeLog | 6 ++++++ gcc/fortran/parse.c | 1 + 2 files changed, 7 insertions(+) (limited to 'gcc/fortran') diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 9fbde4d..c301e3e 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2006-05-11 Francois-Xavier Coudert + + PR fortran/27553 + * parse.c (next_free): Return instead of calling decode_statement + upon error. + 2005-05-10 Thomas Koenig PR fortran/27470 diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c index 2f358e8..70c92b7 100644 --- a/gcc/fortran/parse.c +++ b/gcc/fortran/parse.c @@ -439,6 +439,7 @@ next_free (void) if (!gfc_is_whitespace (c)) gfc_error_now ("Non-numeric character in statement label at %C"); + return ST_NONE; } else { -- cgit v1.1