Issue |
150983
|
Summary |
[flang][OpenMP] Composite simd with if clause ICE without -fopenmp-version=52
|
Labels |
flang
|
Assignees |
mrkajetanp
|
Reporter |
mrkajetanp
|
With a program like the following:
```
program main
!$omp do simd if(.true.)
do i=1, 10
end do
!$omp end do simd
end program
```
Compiling it with `flang -fopenmp -fopenmp-version=52 foo.f90` works as expected.
Compiling it with `flang -fopenmp foo.f90` results in an ICE.
```
flang: ~/llvm/llvm-project/flang/lib/Lower/OpenMP/Decomposer.cpp:87: ConstructQueue Fortran::lower::omp::buildConstructQueue(mlir::ModuleOp, Fortran::semantics::SemanticsContext &, Fortran::lower::pft::Evaluation &, const parser::CharBlock &, llvm::omp::Directive, const List<Clause> &): Assertion `!decompose.output.empty() && "Construct decomposition failed"' failed.
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs