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, OOP] PR 43388: [F2008] ALLOCATE with MOLD=


> * The following does not work although INTEGER is a valid type spec -
> and with unlimited polymophism it makes sense that it is allowed:
>
> INTEGER, ALLOCATE :: a
> ALLOCATE (integer :: a)
>
> ("R402 type-spec is intrinsic-type-spec or derived-type-spec")

Actually it does work once you correct your spelling mistake:

INTEGER, ALLOCATABLE :: a
ALLOCATE (integer :: a)
end

Cheers,
Janus


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