diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2006-08-06 04:58:04 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2006-08-06 04:58:04 +0000 |
commit | f970c857c9232309c68e39214e0fb65c0cfa615c (patch) | |
tree | 6f83df7381e246e6366f03d0e9609d8de8f0d748 /gcc/fortran/parse.c | |
parent | 994c1cc04dda157794990bbe71412678e3d7fad8 (diff) | |
download | gcc-f970c857c9232309c68e39214e0fb65c0cfa615c.zip gcc-f970c857c9232309c68e39214e0fb65c0cfa615c.tar.gz gcc-f970c857c9232309c68e39214e0fb65c0cfa615c.tar.bz2 |
re PR fortran/28590 (A SEQUENCEd defined type which refers to another defined type generates a spurious complaint about the lack of SEQUENCE attribute in the latter)
2006-08-06 Paul Thomas <pault@gcc.gnu.org>
PR fortran/28590
* parse.c (parse_derived): Remove the test for sequence type
components of a sequence type.
* resolve.c (resolve_fl_derived): Put the test here so that
pointer components are tested.
2006-08-06 Paul Thomas <pault@gcc.gnu.org>
PR fortran/28590
* gfortran.dg/sequence_types_1.f90: New test.
From-SVN: r115966
Diffstat (limited to 'gcc/fortran/parse.c')
-rw-r--r-- | gcc/fortran/parse.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c index 972805e..0416d28 100644 --- a/gcc/fortran/parse.c +++ b/gcc/fortran/parse.c @@ -1498,7 +1498,6 @@ parse_derived (void) { int compiling_type, seen_private, seen_sequence, seen_component, error_flag; gfc_statement st; - gfc_component *c; gfc_state_data s; error_flag = 0; @@ -1596,20 +1595,6 @@ parse_derived (void) } } - /* Sanity checks on the structure. If the structure has the - SEQUENCE attribute, then all component structures must also have - SEQUENCE. */ - if (error_flag == 0 && gfc_current_block ()->attr.sequence) - for (c = gfc_current_block ()->components; c; c = c->next) - { - if (c->ts.type == BT_DERIVED && c->ts.derived->attr.sequence == 0) - { - gfc_error - ("Component %s of SEQUENCE type declared at %C does not " - "have the SEQUENCE attribute", c->ts.derived->name); - } - } - pop_state (); } |