[Bug fortran/46344] New: [OOP] ICE with allocatable CLASS components
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Nov 7 12:55:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46344
Summary: [OOP] ICE with allocatable CLASS components
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: janus@gcc.gnu.org
Test case:
module mld_d_prec_type
type mld_d_base_solver_type
end type mld_d_base_solver_type
type mld_d_base_smoother_type
class(mld_d_base_solver_type), allocatable :: sv
end type mld_d_base_smoother_type
type mld_donelev_type
class(mld_d_base_smoother_type), allocatable :: sm
end type mld_donelev_type
end module mld_d_prec_type
program ppde
use mld_d_prec_type
implicit none
type(mld_donelev_type), allocatable :: precv(:)
allocate(precv(1))
end program ppde
This produces an ICE (segfault) with current trunk. Reported by Salvatore
Fillipone.
More information about the Gcc-bugs
mailing list