This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: error message for extending type with coarray component


Damian Rouson wrote:
Could someone please tell me whether the error message below is a compiler bug or a requirement of the Fortran 2008 standard?

type object
end type
type, extends(object) :: periodic
   real f[*]
end type

type, extends(object) :: periodic
                                  1
Error: As extending type 'periodic' at (1) has a coarray component, parent type 'object' shall also have one

That's Fortran 2008's:


C432 (R425) If EXTENDS appears and the type being defined has a coarray ultimate component, its parent type shall have a coarray ultimate component.


Tobias



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