[flang-commits] [flang] [flang][OpenMP] Fix firstprivate not working with lastprivate in DO SIMD (PR #170163)
via flang-commits
flang-commits at lists.llvm.org
Wed Dec 10 06:55:33 PST 2025
jeanPerier wrote:
Hi @tblah and @KrxGu, can you consider a revert of this patch, it is crashing the compiler in some tests:
https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0166/0166_0005.f90
```
flang -fopenmp -c rep.f90
flang: /llvm/include/llvm/ADT/STLExtras.h:841: llvm::detail::zippy<llvm::detail::zip_first, T, U, Args ...> llvm::zip_equal(T&&, U&&, Args&& ...) [with T = llvm::ArrayRef<mlir::BlockArgument>; U = llvm::SmallVector<mlir::Value>&; Args = {llvm::SmallVector<mlir::Value, 6>&}]: Assertion `all_equal({range_size(t), range_size(u), range_size(args)...}) && "Iteratees do not have equal length"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0. Program arguments: flang -fc1 -triple x86_64-unknown-linux-gnu -emit-obj -fcolor-diagnostics -mrelocation-model pic -pic-level 2 -pic-is-pie -target-cpu x86-64 -fopenmp -resource-dir lib/clang/22 -mframe-pointer=all -o rep.o -x f95 rep.f90
#0 0x0000000005528da8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (flang+0x5528da8)
#1 0x0000000005525c44 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#2 0x00007f87971b6990 __restore_rt (/lib64/libpthread.so.0+0x12990)
#3 0x00007f8795f9052f raise (/lib64/libc.so.6+0x4e52f)
#4 0x00007f8795f63e65 abort (/lib64/libc.so.6+0x21e65)
#5 0x00007f8795f63d39 _nl_load_domain.cold.0 (/lib64/libc.so.6+0x21d39)
#6 0x00007f8795f88e86 (/lib64/libc.so.6+0x46e86)
#7 0x0000000005e8068f Fortran::lower::omp::DataSharingProcessor::insertLastPrivateCompare(mlir::Operation*) (flang+0x5e8068f)
```
This is hitting other fujistsu tests.
https://github.com/llvm/llvm-project/pull/170163
More information about the flang-commits
mailing list