This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/16606] gfortran error with a valid derived type definition


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]