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

--- Comment #1 from Alex <waffl3x at gcc dot gnu.org> ---
I accidentally left the template head in the original test case, it
doesn't change the results at all but does slightly over complicate the
test case.

```
struct S {
  void v(int *, int *) {}

  #pragma omp declare variant(v) match(construct={dispatch}) \
                                 adjust_args(need_device_ptr: a)
  void b(int *a, int *b) {}
};


void f(int *p0, int *p1)
{
  S s{};
  #pragma omp dispatch
  s.b(p0, p1);
}
```

Reply via email to