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

Alexey Bataev via Openmp-dev openmp-dev at lists.llvm.org
Fri Nov 1 18:44:55 PDT 2019


It is documented in c++ standard.

Best regards,
Alexey Bataev

1 нояб. 2019 г., в 21:43, Itaru Kitayama <itaru.kitayama at gmail.com> написал(а):


Alexey,

Is it documented somewhere in the code as to the criteria of the triviality of a mapping?

On Thu, Oct 17, 2019 at 5:50 PM Alexey Bataev <a.bataev at hotmail.com<mailto:a.bataev at hotmail.com>> wrote:
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<mailto: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<mailto:Openmp-dev at lists.llvm.org>
> https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20191102/ab1fc162/attachment.html>


More information about the Openmp-dev mailing list