[Patch,Fortran] Add polymorphic type support (OOP, RTTI) - merge from Fortran-dev branch
Steve Kargl
sgk@troutmask.apl.washington.edu
Wed Sep 30 20:37:00 GMT 2009
On Wed, Sep 30, 2009 at 10:20:55PM +0200, Tobias Burnus wrote:
>
> c) Allocation of abstract types requires a type spec or a SOURCE
> type, abstract :: t
> end type t
> class(t), allocatable :: a
> allocate(a) ! missing type-spec/source=
> allocate(a, source=b) ! Wrong: b is abstract
> ! though only checkable at runtime
> end
>
OK, I suppose I should go read the standard, but ...
Why is b abstract, here? By implicit typing, b is
default REAL, and it is undefined.
--
Steve
More information about the Fortran
mailing list