https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115271

            Bug ID: 115271
           Summary: [OpenMP] Declare variant not stored in Fortran module
                    file
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: openmp, wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: parras at gcc dot gnu.org, sandra at gcc dot gnu.org
  Target Milestone: ---

Assume:
module m
  ...
  !$omp declare variant(...) match(...)
end module m

<in another file>
  use m
  call base_function()

As the declare variant data is not stored in the Fortran module file, the
variant resolution does not happen.

Reply via email to