public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/95707] New: ICE in finish_equivalences, at fortran/trans-common.c:1319
@ 2020-06-16 18:51 gscfq@t-online.de
  2020-06-16 20:15 ` [Bug fortran/95707] " anlauf at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2020-06-16 18:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95707
           Summary: ICE in finish_equivalences, at
                    fortran/trans-common.c:1319
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Happens between name length 35 (ok) and 36 (ICE) :


$ cat z1_35.f90
module m2345678901234567890123456789012345
   interface
      module subroutine s2345678901234567890123456789012345
      end
   end interface
end
submodule(m2345678901234567890123456789012345) &
   n2345678901234567890123456789012345
   real :: a(4), u(3,2)
   real :: b(4), v(4,2)
   equivalence (a(1),u(1,1)), (b(1),v(1,1))
end


$ cat z1_36.f90
module m23456789012345678901234567890123456
   interface
      module subroutine s23456789012345678901234567890123456
      end
   end interface
end
submodule(m23456789012345678901234567890123456) &
   n23456789012345678901234567890123456
   real :: a(4), u(3,2)
   real :: b(4), v(4,2)
   equivalence (a(1),u(1,1)), (b(1),v(1,1))
end


$ cat z1_63.f90
module m23456789012345678901234567890123456789012345678901234567890123
   interface
      module subroutine
s23456789012345678901234567890123456789012345678901234567890123
      end
   end interface
end
submodule(m23456789012345678901234567890123456789012345678901234567890123) &
   n23456789012345678901234567890123456789012345678901234567890123
   real :: a(4), u(3,2)
   real :: b(4), v(4,2)
   equivalence (a(1),u(1,1)), (b(1),v(1,1))
end


$ gfortran-11-20200614 -c z1_35.f90
$
$ gfortran-11-20200614 -c z1_36.f90
f951: internal compiler error: in finish_equivalences, at
fortran/trans-common.c:1319
0x71f615 finish_equivalences
        ../../gcc/fortran/trans-common.c:1319
0x71f615 gfc_trans_common(gfc_namespace*)
        ../../gcc/fortran/trans-common.c:1363
0x72c977 gfc_generate_module_vars(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:5796
0x707684 gfc_generate_module_code(gfc_namespace*)
        ../../gcc/fortran/trans.c:2238
0x6b4501 translate_all_program_units
        ../../gcc/fortran/parse.c:6293
0x6b4501 gfc_parse_file()
        ../../gcc/fortran/parse.c:6545
0x70036f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-06-23 20:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-16 18:51 [Bug fortran/95707] New: ICE in finish_equivalences, at fortran/trans-common.c:1319 gscfq@t-online.de
2020-06-16 20:15 ` [Bug fortran/95707] " anlauf at gcc dot gnu.org
2020-06-17 19:28 ` anlauf at gcc dot gnu.org
2020-06-20 14:15 ` cvs-commit at gcc dot gnu.org
2020-06-22 19:30 ` cvs-commit at gcc dot gnu.org
2020-06-23 20:47 ` anlauf at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).