Issue 61451
Summary [flang] [OpenMP] flang-new crashes without appropriate message
Labels new issue
Assignees
Reporter k-arrows
    Test case (modified from gfortran testsuite) 
(Original : https://github.com/gcc-mirror/gcc/blob/master/gcc/testsuite/gfortran.dg/gomp/substring.f90)

```console
$ cat substring_modify.f90
implicit none
character(len=10) :: str1, str2(5,5)

type t
  character(len=10) :: str1, str2(5,5)
end type t
type(t) :: v

!$omp target enter data map(to: str1)      ! OK
!$omp target enter data map(to: str2)      ! OK
!$omp target enter data map(to: str2(2,5)) ! OK

!$omp target enter data map(to: v%str1) ! OK
!$omp target enter data map(to: v%str2)       ! OK
!$omp target enter data map(to: v%str2(1,2))  ! OK

end
```

Compilation result (I snipped stack dump.)

```console
$ gfortran -fopenmp substring_modify.f90
$ ./a.out
$ flang-new -fopenmp substring_modify.f90
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
```

Compiler version
```console
$ flang-new --version
flang-new version 17.0.0 (https://github.com/llvm/llvm-project.git 9e8bac7480640677e04f4b9f98c41cb94f8180e2)
Target: x86_64-unknown-linux-gnu
Thread model: posix
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to