error message for extending type with coarray component

Tobias Burnus burnus@net-b.de
Mon Jan 7 11:31:00 GMT 2013


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



More information about the Fortran mailing list