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/66494] New: ICE on using same name for embedded subroutine


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

            Bug ID: 66494
           Summary: ICE on using same name for embedded subroutine
           Product: gcc
           Version: 5.1.1
            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 ambiguous code ...
   recursive subroutine s
      call s
   contains
      subroutine s
      end
   end

yields (with gfortran 5.1.1, 4.9.0, 4.8.3 on SUSE Linux 13.2, 64 bit)
internal compiler error: in gfc_generate_function_code, at
fortran/trans-decl.c:5722

---

Same issue for this reduction ...
   subroutine s
   contains
      subroutine s
      end
   end


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