public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/101327] New: ICE in find_array_element, at fortran/expr.c:1355
Date: Mon, 05 Jul 2021 16:38:33 +0000	[thread overview]
Message-ID: <bug-101327-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             reply	other threads:[~2021-07-05 16:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-05 16:38 gscfq@t-online.de [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-101327-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).