From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3E9D53858406; Wed, 17 Nov 2021 09:07:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3E9D53858406 From: "juergen.reuter at desy dot de" 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: Wed, 17 Nov 2021 09:07:30 +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: juergen.reuter at desy dot de 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: Wed, 17 Nov 2021 09:07:30 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103115 --- Comment #6 from J=C3=BCrgen Reuter --- (In reply to Thomas Koenig from comment #5) > I can confirm the ICE with current trunk both on x86_64 and > on POWER. >=20 > x86_64: >=20 > $ 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/l= to- > 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: >=20 > 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 >=20 > POWER: >=20 Really interesting, I don't get an ICE with the following setup: ../configure --prefix=3D/usr/local/ --with-gmp=3D/usr/local/ --with-mpfr=3D/usr/local/ --with-mp=3D/usr/local/ --with-sysroot=3D/Applications/Xcode.app/Contents/Developer/Platforms/MacOS= X.platform/Developer/SDKs/MacOSX.sdk/ --enable-checking=3Drelease --enable-languages=3Dc,c++,fortran,lto,objc,obj= -c++ $ gfortran --version GNU Fortran (GCC) 12.0.0 20211115 (experimental) Maybe the enable-checking setup!? I am compiling without any flags the code snippet in the very first post in this PR.=