module m

  type :: t
     logical :: l = .true.
     class(t),pointer :: cp => null()
  end type

  type(t),save :: default_t

end module


Compiling this currently results in:

f951: internal compiler error: in output_constructor_regular_field, at
varasm.c:4995


Reported by Hans-Werner Boschmann.


-- 
           Summary: [OOP] ICE in output_constructor_regular_field, at
                    varasm.c:4995
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janus at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43990

Reply via email to