https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70072
Dominique d'Humieres changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70072
Thomas Koenig changed:
What|Removed |Added
CC||tkoenig at gcc dot gnu.org
--- Comment #
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70072
--- Comment #3 from Dominique d'Humieres ---
With gfortran 7.2.0 and trunk (8.0) I get the error
class(t), parameter :: z(2,3) = t(1)
1
Error: CLASS variable 'z' at (1) cannot have the PARAMETER attribute
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70072
Dominique d'Humieres changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70072
--- Comment #1 from Gerhard Steinmetz
---
Whereas with "type" instead of "class" :
$ cat z2.f90
program p
type t
integer :: n
end type
type(t), parameter :: z(2,3) = t(1)
print *, size(z, dim=1)
print *, lbound(z, dim=1)