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



             Bug #: 57129

           Summary: ICE (segfault) in check_extended_derived_type

    Classification: Unclassified

           Product: gcc

           Version: 4.9.0

            Status: UNCONFIRMED

          Keywords: error-recovery, ice-on-invalid-code

          Severity: normal

          Priority: P3

         Component: fortran

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: bur...@gcc.gnu.org





The following invalid code causes a segfault in check_extended_derived_type



subroutine t()

  type t

  end type t

  type, extends(t) :: t2

  end type t2

end





It first correctly diagnoses:

type t

      1

Error: FUNCTION attribute conflicts with SUBROUTINE attribute in 't' at (1)

Reply via email to