Carlos Seo
Carlos Seo
[Flang] Compilation error when an array declared as unlimited polymorphic is used in where construct
Reassigning this to @klausler per discussion in PR #159624
@ohno-fj this seems to be fixed. Could you please check?
flang-rt is also missing from that file
This seems to be working now: ``` $ cat sandbox/test.f90 program main integer a(6000*400), b(6000*400) a=1 where(a>0) b=[a] b=[a**1] end where if(b(6000*400)/=1) print *,'err1' print *,'pass' end program $ ./build/bin/flang...
@ohno-fj this seems fixed. Please check and close if it's the case.
@ohno-fj I can't reproduce this with the current tree. Please check and close if it's fixed.
I think the source of this confusion is that this issue is intermittent: ``` $ for i in {1..20}; do echo "=== Attempt $i ==="; ./build/bin/flang -L./build/runtimes/runtimes-bins/openmp/runtime/src/ -fopenmp sandbox/test.f90 -o...
I may need some insight about this. Let me share the debugging first. Inspecting the core file in gdb: ``` Core was generated by `./test'. Program terminated with signal SIGSEGV,...
btw, the other two tests work because they don't have array slice operations inside OpenMP `workshare` constructs.
Hm, I think there is a more fundamental problem before the above. There is a racing condition in the shared stack. I'll submit a PR later today.