This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/13010] [gfortran] seg fault on valid code
- From: "pbrook at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Dec 2003 09:37:31 -0000
- Subject: [Bug fortran/13010] [gfortran] seg fault on valid code
- References: <20031111161239.13010.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pbrook at gcc dot gnu dot org 2003-12-01 09:37 -------
Ananlysis of problem:
This is beacuse we're creating the RECORD_TYPE for x_t before we process
listptr_t. In general this is unavoidable because a type may contain circular
pointers.
The problems occur when we try to create an array pointer type. For this we
want to know the size of each element so that we can create the descriptor
type.
Solution is to use incomplete pointer types in the descriptor, then complete
these once the required record types have been layed out.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13010