https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68225
--- Comment #4 from Gerhard Steinmetz
---
>
> Am I correct to understand that this error is bogus for Fortran 2008 (at
> least)?
That feature is new in F2008 :
A structure constructor can omit the value for an allocatable component.
Further
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68225
Dominique d'Humieres changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68225
--- Comment #2 from Gerhard Steinmetz
---
Here, one or both components are initialized :
$ cat z1.f90
program p
type t
integer, allocatable :: a
end type
type, extends(t) :: t2
integer, allocatable :: b
end type
type(
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68225
--- Comment #1 from Gerhard Steinmetz
---
Adding one type extension :
$ cat z0.f90
program p
type t
integer, allocatable :: a
end type
type, extends(t) :: t2
integer, allocatable :: b
end type
type(t2) :: x
x = t2(