This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/66052] New: Segmentation fault for misplaced protected statement


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

            Bug ID: 66052
           Summary: Segmentation fault for misplaced protected statement
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

This code fragment with interchanged lines
   module p
   contains
   protected x
   end

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

Similar, but basically not legal in program, subroutine, ...
   program p
   contains
   protected x
   end

Or even ...
   program p
   end
   protected x
   end

Kind regards.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]