http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55887
Bug #: 55887
Summary: [OOP][F2008] ICE with CLASS and data-target pointer
association in (default) initialization
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: fortran
AssignedTo: [email protected]
ReportedBy: [email protected]
Blocks: 45290, 51076
Follow up to PR 55763 comment 14/15.
For CLASS(t) and CLASS(*), gfortran ICEs for pointer default initializers/
initializers which point to a data target instead of NULL.
Example:
type t
end type t
type(t), target :: x
class(*), pointer :: ptr2 => x
if (same_type_as (ptr2, x) .neqv. .TRUE.) call abort()
end
That's a Fortran 2008 feature. (Cf. also PR51076, PR45290 and PR50410 comment
9.)