On Wed, Jul 22, 2020 at 11:25:47AM +0200, Tobias Burnus wrote:
> FORTRAN MODULE
> Then I have the question why, e.g., "use openacc_kinds" in
> gfortran.dg/goacc/acc_on_device-2.f95 does work. What's different there?

Because that test defines its own module with that name:
module openacc_kinds
  implicit none

  integer, parameter :: acc_device_kind = 4

end module openacc_kinds
Ditto openacc module.

It is like e.g. many g++.dg/ tests which intentionally don't include the
libstdc++ headers, but instead provide minimal definitions of whatever they
need (e.g. placement new, the spaceship stuff, ...).

        Jakub

Reply via email to