[flang-commits] [flang] [Flang][OpenMP] Do not flag OmpPreDetermined for module variables (PR #178226)

Jack Styles via flang-commits flang-commits at lists.llvm.org
Tue Jan 27 08:11:48 PST 2026


Stylie777 wrote:

@kparzysz, thanks thats good to know.

It's hitting the following assert, `assert(hsb && "Host symbol box not found");` at Utils.cpp:689 when trying to privatise the symbol `n` in the example below (Small reproducer based off https://github.com/llvm/llvm-test-suite/blob/main/Fortran/gfortran/regression/gomp/pr82568.f90). I don't expect it to have a host box from my understanding as it's being accessed through Use Association, rather than host association.  

```
MODULE PR82568_MOD
  INTEGER :: N
END MODULE

PROGRAM PR82568
  INTEGER :: I

  !$OMP TASKLOOP
  DO I=1,2
    BLOCK
      USE PR82568_MOD
      DO N=1,2
        PRINT*,I,N
      END DO
    END BLOCK
  END DO
END PROGRAM PR82568
```

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


More information about the flang-commits mailing list