public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/97084] New: Openmp + Allocatable String Crashes
@ 2020-09-17 10:28 wddawson at ucdavis dot edu
  2020-10-06 13:16 ` [Bug fortran/97084] " dominiq at lps dot ens.fr
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: wddawson at ucdavis dot edu @ 2020-09-17 10:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97084

            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 = 80
  character(len=:), allocatable :: temp_string

  allocate(character(len=N) :: temp_string)

  !$omp parallel default(shared)
  !$omp do
  do ii = 1, N
     temp_string(ii:ii) = "#"
  end do
  !$omp end do
  !$omp end parallel
end program
```

When I compile with `gfortran main.f90 -fopenmp -o test ` I get the following
error:
```
during GIMPLE pass: omplower
main.f90:9:0:

    9 |   !$omp parallel default(shared)
      | 
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?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-07  7:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-17 10:28 [Bug fortran/97084] New: Openmp + Allocatable String Crashes wddawson at ucdavis dot edu
2020-10-06 13:16 ` [Bug fortran/97084] " dominiq at lps dot ens.fr
2020-10-07  7:16 ` burnus at gcc dot gnu.org
2020-10-07  7:42 ` burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).