From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 139763858D35; Tue, 16 Nov 2021 15:42:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 139763858D35 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/103115] [12 Regression] reallocation of character array fails when appending a constant size 4 array Date: Tue, 16 Nov 2021 15:42:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 11.1.0 X-Bugzilla-Keywords: ice-on-valid-code, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Tue, 16 Nov 2021 15:42:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103115 --- Comment #5 from Thomas Koenig --- I can confirm the ICE with current trunk both on x86_64 and on POWER. x86_64: $ gfortran -v Es werden eingebaute Spezifikationen verwendet. COLLECT_GCC=3Dgfortran COLLECT_LTO_WRAPPER=3D/home/ig25/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto= -wrapper Ziel: x86_64-pc-linux-gnu Konfiguriert mit: ../trunk/configure --prefix=3D/home/ig25 --enable-languages=3Dc,c++,fortran --enable-maintainer-mode Thread-Modell: posix Unterst=C3=BCtzte LTO-Kompressionsalgorithmen: zlib gcc-Version 12.0.0 20211116 (experimental) [master revision e87559d202d:f4e6da6e8ac:36ec54aac7da134441c83248e14825381b8d6f17] (GCC)=20 $ gfortran a.f90=20 a.f90:10:13: 10 | ] | 1 interner Compiler-Fehler: tree check: expected integer_cst, have save_expr = in gfc_trans_array_constructor_value, at fortran/trans-array.c:2187 0x808a8a tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../trunk/gcc/tree.c:8701 POWER: tkoenig@gcc135 ~]$ gfortran -v Using built-in specs. COLLECT_GCC=3Dgfortran COLLECT_LTO_WRAPPER=3D/home/tkoenig/libexec/gcc/powerpc64le-unknown-linux-g= nu/12.0.0/lto-wrapper Target: powerpc64le-unknown-linux-gnu Configured with: ../trunk/configure --prefix=3D/home/tkoenig --enable-languages=3Dc,c++,fortran Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20211116 (experimental) (GCC)=20 [tkoenig@gcc135 ~]$ gfortran a.f90=20 a.f90:10:13: 10 | ] | 1 internal compiler error: tree check: expected integer_cst, have save_expr in gfc_trans_array_constructor_value, at fortran/trans-array.c:2187 0x1025d7ff tree_check_failed(tree_node const*, char const*, int, char const= *, ...) ../../trunk/gcc/tree.c:8701 0x10408c23 tree_int_cst_elt_check(tree_node*, int, char const*, int, char const*) ../../trunk/gcc/tree.h:3641=