From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 03738385803D; Mon, 5 Jul 2021 16:38:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03738385803D From: "gscfq@t-online.de" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jul 2021 16:38:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101327 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]) =3D [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=