From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 80CC3386EC3E; Thu, 17 Sep 2020 10:28:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 80CC3386EC3E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600338485; bh=NCYLiuqgDHGrjTJjItlDinxJtODsS3heiKL3INj6QgA=; h=From:To:Subject:Date:From; b=by8NFNEgEYf2be4C9JpDobhdWdgCmeYz/0gEFJ9Hs2YJ7KxvDL06ttHFGZfvSNb2a /I6E0ujMQQ4IVcnFoPOtR4GqdRu+AxxU1vAMGVxffoI0pccbq0kI+WZvt44/f11Qru fDi1xhHHbtTf3lBI4CyKeM03hEi0BLU+/YhNbtCg= From: "wddawson at ucdavis dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/97084] New: Openmp + Allocatable String Crashes Date: Thu, 17 Sep 2020 10:28:05 +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: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wddawson at ucdavis dot edu 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: Thu, 17 Sep 2020 10:28:05 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97084 Bug ID: 97084 Summary: Openmp + Allocatable String Crashes Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: wddawson at ucdavis dot edu Target Milestone: --- Minimal example ``` program test implicit none integer :: ii integer, parameter :: N =3D 80 character(len=3D:), allocatable :: temp_string allocate(character(len=3DN) :: temp_string) !$omp parallel default(shared) !$omp do do ii =3D 1, N temp_string(ii:ii) =3D "#" end do !$omp end do !$omp end parallel end program ``` When I compile with `gfortran main.f90 -fopenmp -o test ` I get the followi= ng error: ``` during GIMPLE pass: omplower main.f90:9:0: 9 | !$omp parallel default(shared) |=20 internal compiler error: in gimplify_expr, at gimplify.c:13885 libbacktrace could not find executable to open ``` It fails with the following compilers: ``` GNU Fortran (Homebrew GCC 10.2.0) 10.2.0 ``` ``` GNU Fortran (Homebrew GCC 9.3.0) 9.3.0 ``` But works with: ``` GNU Fortran (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39) ``` This is possibly related to 89621?=