This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug 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
- From: "paul dot richard dot thomas at cea dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Aug 2006 09:44:01 -0000
- Subject: [Bug 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
- References: <bug-28590-13054@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from paul dot richard dot thomas at cea dot fr 2006-08-04 09:44 -------
Created an attachment (id=12015)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12015&action=view)
Fix and testcase for this PR
The check that sequence type components are themselves sequence types was being
done in parse.c. This is too early for pointer components, since there is no
requirement that they be already defined. This is cured by moving the test to
resolve.c. The testcase is Chris's submission with a bit of DejaGnuery and a
comment.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28590