This is the mail archive of the gcc-patches@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]

Re: [Patch,Fortran] Add polymorphic type support (OOP, RTTI) - merge from Fortran-dev branch


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


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