From: Augustin Degomme Date: Fri, 26 Jul 2019 12:27:14 +0000 (+0200) Subject: standard says : "The names attached to opaque objects do not propagate when the objec... X-Git-Tag: v3.24~249 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c4bdea03e8859d800ca3be2622de5fca7d8837bb standard says : "The names attached to opaque objects do not propagate when the object is duplicated or copied by MPI routines. " --- diff --git a/src/smpi/mpi/smpi_datatype.cpp b/src/smpi/mpi/smpi_datatype.cpp index a4b307fd57..a3d6f8a2bb 100644 --- a/src/smpi/mpi/smpi_datatype.cpp +++ b/src/smpi/mpi/smpi_datatype.cpp @@ -129,8 +129,6 @@ Datatype::Datatype(Datatype *datatype, int* ret) : name_(nullptr), size_(datatyp { flags_ &= ~DT_FLAG_PREDEFINED; *ret = MPI_SUCCESS; - if(datatype->name_) - name_ = xbt_strdup(datatype->name_); if (not datatype->attributes()->empty()) { int flag=0;