https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66056

            Bug ID: 66056
           Summary: Segmentation fault for lonely label in type
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fort...@t-online.de
  Target Milestone: ---

This code fragment with a lonely label in a type ...
   program p
      type t
      1 !
      end type
   end

or this variation ...
   program p
      type t
      ; 1 ;
      end type
   end

produces (with gfortran 5.1.1 on SUSE Linux 13.2, 64 bit)
internal compiler error: Segmentation fault

---

Similar, but with a lonely real number instead ...
   program p
      type t
      1.2 !
      end type
   end

or this variation ...
   program p
      type t
      ; 1.2 ;
      end type
   end

leads to ...
Warning: Ignoring statement label in empty statement at (1)
(null):0: confused by earlier errors, bailing out

Kind regards.

Reply via email to