Jason-VanBeusekom wrote:

@ronlieb on a gfx908 and gfx90a I was not able to reproduce this, your example 
compiled and ran without issue:

```
clang++  -O2    -fopenmp --offload-arch=gfx908   -D__OFFLOAD_ARCH_gfx908__ 
test.cpp -o virtual_functions
test.cpp:43:9: warning: type 'C' is not trivially copyable and not guaranteed 
to be mapped correctly [-Wopenmp-mapping]
   43 |     h = host_C.foo(3);
      |         ^~~~~~
1 warning generated.
test.cpp:43:9: warning: type 'C' is not trivially copyable and not guaranteed 
to be mapped correctly [-Wopenmp-mapping]
   43 |     h = host_C.foo(3);
      |         ^~~~~~
1 warning generated.
./virtual_functions 
```

https://github.com/llvm/llvm-project/pull/159856
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to