diff options
Diffstat (limited to 'gcc/fortran')
-rw-r--r-- | gcc/fortran/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/fortran/parse.c | 10 |
2 files changed, 11 insertions, 5 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 590258a..9adaf07 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2007-08-26 Tobias Burnus <burnus@net-b.de> + + PR fortran/33188 + * parse.c (parse_derived): Support empty derived type + definitions for Fortran 2003. + 2007-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * trans-openmp.c (gfc_omp_privatize_by_reference): Constify. diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c index 835b05a..df7f68f 100644 --- a/gcc/fortran/parse.c +++ b/gcc/fortran/parse.c @@ -1544,11 +1544,11 @@ parse_derived (void) case ST_END_TYPE: compiling_type = 0; - if (!seen_component) - { - gfc_error ("Derived type definition at %C has no components"); - error_flag = 1; - } + if (!seen_component + && (gfc_notify_std (GFC_STD_F2003, "Fortran 2003: Derived type " + "definition at %C without components") + == FAILURE)) + error_flag = 1; accept_statement (ST_END_TYPE); break; |