https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68440

--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fort...@t-online.de> 
---
Some variants :

$ cat z4.f90
subroutine s
   type t
   end type
   class(t), parameter :: x = t()
end

$ gfortran -g -O0 -Wall -fcheck=all z4.f90
f951: internal compiler error: Segmentation fault

---

$ cat z5.f90
subroutine s
   type t
   end type
   class(t) :: x = t()
end

$ gfortran -g -O0 -Wall -fcheck=all z5.f90
z5.f90:4:16:

    class(t) :: x = t()
                1
Error: CLASS variable 'x' at (1) must be dummy, allocatable or pointer
(null):0: confused by earlier errors, bailing out

Reply via email to