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

Itaru Kitayama via Openmp-dev openmp-dev at lists.llvm.org
Fri Nov 1 18:43:35 PDT 2019


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> 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> написал(а):
> >
> > 
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20191102/f7c3ee70/attachment.html>


More information about the Openmp-dev mailing list