[Openmp-dev] Non-trivial type ... mapped message printed twice

Alexey Bataev via Openmp-dev openmp-dev at lists.llvm.org
Thu Oct 17 01:50:14 PDT 2019


First time it is printed when the code is compiled for the host, the second time when compjled for the device.

Best regards,
Alexey Bataev

> 16 окт. 2019 г., в 22:09, Itaru Kitayama via Openmp-dev <openmp-dev at lists.llvm.org> написал(а):
> 
> 
> Hi,
> When building a simple program like below with the trunk Clang
> I see a warning "warning: Non-trivial type ..." printed twice. Is this
> intentional?
>  
> #include <iostream>
> 
> class A {
> public:
>      A() {};
> };
> 
> int main()
> {
>  A a[100];
> #pragma omp target teams distribute parallel for map(to: a[0:100])
>     for(int i=0; i<10; i++) {
>     }
> }
> _______________________________________________
> Openmp-dev mailing list
> Openmp-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev


More information about the Openmp-dev mailing list