[Bug fortran/25681] New: Segmentation fault, when accessing len(attribute) of multidimensional object
Heiko dot Klein at gmx dot net
gcc-bugzilla@gcc.gnu.org
Thu Jan 5 16:38:00 GMT 2006
Accessing something like len(f_2d%class) where f_2d is a multidimensional
object gives a segmentation fault in the compiler.
Example:
module testLen
implicit none
public :: Derived
type, public:: Deriv
character(len=9) :: class
end type Deriv
type(Deriv), private, dimension(2) :: f_2d
contains
subroutine Derived()
character(len=len(f_2d%class)) :: typ ! See defs of f_2d
typ = "Hallo "
end subroutine Derived
end module testLen
--
Summary: Segmentation fault, when accessing len(attribute) of
multidimensional object
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Heiko dot Klein at gmx dot net
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25681
More information about the Gcc-bugs
mailing list