public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/103776] New: ICE in gfc_compare_string, at fortran/arith.c:1118
@ 2021-12-20 17:51 gscfq@t-online.de
  2021-12-20 20:03 ` [Bug fortran/103776] " anlauf at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2021-12-20 17:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103776
           Summary: ICE in gfc_compare_string, at fortran/arith.c:1118
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Follow-up of pr103591, affects versions down to at least r5 :


$ cat z1.f90
program p
   integer :: n
   select case (n)
   case (['1']:2)
   end select
end


$ cat z3.f90
program p
   integer :: n
   select case (n)
   case(['1']:['2'])
   end select
end


$ gfortran-12-20211219 -c z1.f90
f951: internal compiler error: Segmentation fault
0xd6d1ff crash_signal
        ../../gcc/toplev.c:322
0x7663ba gfc_compare_string(gfc_expr*, gfc_expr*)
        ../../gcc/fortran/arith.c:1118
0x80c2b6 resolve_select
        ../../gcc/fortran/resolve.c:8784
0x815c67 gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:12165
0x817b27 resolve_codes
        ../../gcc/fortran/resolve.c:17532
0x817bee gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:17567
0x7fff14 resolve_all_program_units
        ../../gcc/fortran/parse.c:6586
0x7fff14 gfc_parse_file()
        ../../gcc/fortran/parse.c:6842
0x84d53f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:216

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

end of thread, other threads:[~2021-12-27 20:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-20 17:51 [Bug fortran/103776] New: ICE in gfc_compare_string, at fortran/arith.c:1118 gscfq@t-online.de
2021-12-20 20:03 ` [Bug fortran/103776] " anlauf at gcc dot gnu.org
2021-12-20 21:08 ` anlauf at gcc dot gnu.org
2021-12-22 19:09 ` cvs-commit at gcc dot gnu.org
2021-12-22 19:11 ` anlauf at gcc dot gnu.org
2021-12-27 20:17 ` cvs-commit 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).