[flang-commits] [flang] [Flang][OpenMP] Add Semantic Checks for Atomic Capture Construct (PR #108516)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Thu Sep 19 01:26:03 PDT 2024


kiranchandramohan wrote:

> > Errors are not emitted for the following program. Is that expected?
> 
> Thanks for the review. This is not expected, it looks like gfortran and ifx compilers are also not throwing an error. https://godbolt.org/z/sbYW9Tv3E

I think it is the use of taking the first symbol from the SymbolVector that is leading to this situation. Could you check the lowering code to see what is used there to match the variable in the atomic update on the RHS?

https://github.com/llvm/llvm-project/pull/108516


More information about the flang-commits mailing list