[Bug fortran/68440] ICE on declaring class variable with wrong attribute
gerhard.steinmetz.fortran@t-online.de
gcc-bugzilla@gcc.gnu.org
Thu Nov 19 17:45:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68440
--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@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
More information about the Gcc-bugs
mailing list