kokkos / mdspan

Reference implementation of mdspan targeting C++23
Other
405 stars 69 forks source link

compilation warning #293

Open weilewei opened 12 months ago

weilewei commented 12 months ago

Hello,

I encountered this warning when I include #include <experimental/mdspan>. I wonder if we do not suppress warning on my project, can we have a fix on mdspan repo? Or any suggestions are appreciated. Thanks.

/mypath/externals/mdspan/include/experimental/../mdspan/../experimental/__p0009_bits/dynamic_extent.hpp", line 29: warning: using-declaration ignored -- it refers to the current namespace [useless_using_declaration]
  using std::dynamic_extent;
        ^

Remark: individual warnings can be suppressed with "--diag_suppress <warning-name>"
nmm0 commented 12 months ago

I'll take a look at it, the fix in mdspan seems pretty straightforward

nmm0 commented 11 months ago

@weilewei can you give the compiler version, C++ standard you are building on, and standard library (libstdc++, libc++) you are using?

weilewei commented 11 months ago

@nmm0, I am using nvc++ 23.7, C++ standard 23, libstdc++.so.6.0.30, libc-2.31.so. (there is no libc++ in my ldd)