[Bug fortran/51652] Allocate with type-spec and source-expr: check whether length type-parameter is the same is lacking
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Sat Feb 24 16:34:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51652
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #10 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Note that compiling with trunk
type keyword
character(60), allocatable :: c(:) ! works but should it?
end type keyword
...
allocate(character(80) :: kw(1)%c(10))
gives the error
allocate(character(80) :: kw(1)%c(10))
1
Error: Allocating kw at (1) with type-spec requires the same character-length
parameter as in the declaration
> I think that the is now fixed and can be closed.
Agreed, closing.
More information about the Gcc-bugs
mailing list