This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/16606] gfortran error with a valid derived type definition
- From: "paulthomas2 at wanadoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Dec 2004 15:08:16 -0000
- Subject: [Bug fortran/16606] gfortran error with a valid derived type definition
- References: <20040717143936.16606.deji_aking@yahoo.ca>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From paulthomas2 at wanadoo dot fr 2004-12-03 15:08 -------
The problem lies with the character pointer in the derived type. Remove the
assignement to null and this example compiles. Try to allocate pd and it fails
again. Change to to fixed length, it is OK, but bombs out again when you
assign something to it. The mixture of derived types and characters seems to
be toxic! CVS 20041202
(In reply to comment #4)
> Further reduced to:
> TYPE n
> CHARACTER, POINTER :: vc => NULL()
> END TYPE n
> TYPE (n), POINTER :: pd
> END
> this is, I believe, indeed valid. Therefor confirmed this time.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16606