Issue |
142935
|
Summary |
[flang][openmp] compiler crash when private clause is used with SIMD
|
Labels |
flang
|
Assignees |
|
Reporter |
shivaramaarao
|
consider the following program
```
PROGRAM MAIN
REAL(KIND=4) :: A(10,10), B(10,10), C(10,10)
!$OMP SIMD PRIVATE(I,J)
DO I=1, SIZE(A,1)
DO J=1, SIZE(A,2)
C(I,J) = A(I,J) + B(I,J)
ENDDO
ENDDO
!$OMP END SIMD
END PROGRAM
```
$flang -openmp t1.f90
```
flang: /mnt/extendedspace2/shivaram/llvm_trunk2/llvm-project/flang/lib/Lower/OpenMP/OpenMP.cpp:753: mlir::Operation* createAndSetPrivatizedLoopVar(Fortran::lower::AbstractConverter&, mlir::Location, mlir::Value, const Fortran::semantics::Symbol*): Assertion `converter.isPresentShallowLookup(*sym) && "Expected symbol to be in symbol table."' failed.
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs