From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 083D6385801B; Fri, 25 Mar 2022 13:45:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 083D6385801B From: "mscfd at gmx dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/105054] Using one kind of pointer functions causes the compiler to hang Date: Fri, 25 Mar 2022 13:45:21 +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.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mscfd at gmx dot net 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: cc 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: Fri, 25 Mar 2022 13:45:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105054 martin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mscfd at gmx dot net --- Comment #1 from martin --- Confirmed with the current development branch for gfortran-12. Moreover, if I comment out the program beginning from line pointer_to_string(2) =3D '12345678901234567890' to the end, (hence "pointer_to_string(1) =3D '1234567890'" is the last uncommented line), then I get an ICE: during RTL pass: expand pointer_to_string.f90:20:26: 20 | program chk_string_pointer | ^ internal compiler error: in expand_expr_real_1, at expr.cc:10585 0x68336a expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.cc:10585 0x908991 expand_normal ../../gcc/expr.h:307 0x908991 do_compare_and_jump ../../gcc/dojump.cc:1253 0x90999a do_jump_1 ../../gcc/dojump.cc:253 0x89f6c1 expand_gimple_cond ../../gcc/cfgexpand.cc:2645 0x89f6c1 expand_gimple_basic_block ../../gcc/cfgexpand.cc:5933 0x8a0536 execute ../../gcc/cfgexpand.cc:6806=