Persistent warning with g++-8.x

Issue #158 resolved
Paul Hargrove created an issue

g++-8.2 produces the following warning, and others very similar, in many upcxx test compilations, including uts_ranks, collectives, atomics, rput, dist_object, and others:

/home/data2/upcnightly/dirac/gcc82-EX/work/dbg/upcxx/.nobs/art/ab250a0b85677abfd755255cb89f25e22c05ce28/upcxx/parcel.hpp:365:18: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct main()::<lambda(class upcxx::dist_object<int>&, class upcxx::dist_object<int>&)>' with no trivial copy-assignment; use copy-initialization instead [-Wclass-memaccess]^M
       std::memcpy(y, &x, sizeof(T));^M
       ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~^M

Comments (4)

  1. Paul Hargrove reporter

    Fix confirmed with a config on Dirac very similar to the nightly CI.
    Thanks, @akamil

  2. Log in to comment