This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
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
- References:
- [Patch, Fortran, OOP] PR 43388: [F2008] ALLOCATE with MOLD=
- Re: [Patch, Fortran, OOP] PR 43388: [F2008] ALLOCATE with MOLD=
- Re: [Patch, Fortran, OOP] PR 43388: [F2008] ALLOCATE with MOLD=
- Re: [Patch, Fortran, OOP] PR 43388: [F2008] ALLOCATE with MOLD=
- Re: [Patch, Fortran, OOP] PR 43388: [F2008] ALLOCATE with MOLD=