Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
133 Views

class-memaccess warning when compiling with gcc-10.2

Hi, got following warning when compiling with GCC-10.2. TBB 2020.2

Any ideas? Thanks!

/opt/intel/tbb/include/tbb/concurrent_hash_map.h: In constructor ‘tbb::interface5::internal::hash_map_base::hash_map_base()’:
/opt/intel/tbb/include/tbb/concurrent_hash_map.h:131:76: error: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct tbb::interface5::internal::hash_map_base::bucket’ with no trivial copy-assignment; use value-initialization instead [-Werror=class-memaccess]
  131 |             std::memset(my_embedded_segment, 0, sizeof(my_embedded_segment));
      |                                                                            ^
/opt/intel/tbb/include/tbb/concurrent_hash_map.h:93:16: note: ‘struct tbb::interface5::internal::hash_map_base::bucket’ declared here
   93 |         struct bucket : tbb::internal::no_copy {
      |                ^~~~~~

 

0 Kudos
1 Reply
Highlighted
Employee
100 Views

Hello, thanks for the report. This error will be fixed in future updates.

0 Kudos