public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/101327] New: ICE in find_array_element, at fortran/expr.c:1355
@ 2021-07-05 16:38 gscfq@t-online.de
  2021-07-06 17:50 ` [Bug fortran/101327] " kargl at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: gscfq@t-online.de @ 2021-07-05 16:38 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101327
           Summary: ICE in find_array_element, at fortran/expr.c:1355
           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: ---

Affects versions down to at least r5 :


$ cat z1.f90
subroutine s
   integer, parameter :: n([2]) = [1, 2]
   type t
      integer :: a(n(1):n(2))
   end type
end


$ gfortran-12-20210704 -c z1.f90
f951: internal compiler error: in find_array_element, at fortran/expr.c:1355
0x6fe17d find_array_element
        ../../gcc/fortran/expr.c:1354
0x6fe17d simplify_const_ref
        ../../gcc/fortran/expr.c:1882
0x6fe85e gfc_simplify_expr(gfc_expr*, int)
        ../../gcc/fortran/expr.c:2281
0x6feaab simplify_parameter_variable
        ../../gcc/fortran/expr.c:2110
0x6fe82d gfc_simplify_expr(gfc_expr*, int)
        ../../gcc/fortran/expr.c:2248
0x6ea784 variable_decl
        ../../gcc/fortran/decl.c:2640
0x6ea784 gfc_match_data_decl()
        ../../gcc/fortran/decl.c:6201
0x751bd3 match_word
        ../../gcc/fortran/parse.c:65
0x751bd3 decode_statement
        ../../gcc/fortran/parse.c:376
0x75361a next_free
        ../../gcc/fortran/parse.c:1351
0x75361a next_statement
        ../../gcc/fortran/parse.c:1583
0x755114 parse_derived
        ../../gcc/fortran/parse.c:3490
0x755114 parse_spec
        ../../gcc/fortran/parse.c:4031
0x757aac parse_progunit
        ../../gcc/fortran/parse.c:6009
0x759560 gfc_parse_file()
        ../../gcc/fortran/parse.c:6557
0x7a5c4f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:216

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

end of thread, other threads:[~2021-09-30 19:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 16:38 [Bug fortran/101327] New: ICE in find_array_element, at fortran/expr.c:1355 gscfq@t-online.de
2021-07-06 17:50 ` [Bug fortran/101327] " kargl at gcc dot gnu.org
2021-08-30 19:35 ` anlauf at gcc dot gnu.org
2021-08-30 20:02 ` sgk at troutmask dot apl.washington.edu
2021-08-30 20:13 ` anlauf at gcc dot gnu.org
2021-08-30 21:41 ` anlauf at gcc dot gnu.org
2021-09-07 18:52 ` cvs-commit at gcc dot gnu.org
2021-09-11 19:01 ` cvs-commit at gcc dot gnu.org
2021-09-16 18:33 ` cvs-commit at gcc dot gnu.org
2021-09-30 19:28 ` cvs-commit at gcc dot gnu.org
2021-09-30 19:30 ` 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).