#1846

Compile problem against aa64 stdlib

OpenVictorEijkhoutopened 1y ago
[  6%] Building CXX object test/action/CMakeFiles/range.v3.act.reverse.dir/reverse.cpp.o
cd /admin/build/admin/rpms/vista/SOURCES/build-0.12.0-vista-nvidia24.7/test/action && /home1/apps/nvidia/Linux_aarch64/24.7/compilers/bin/nvc++  -I/admin/build/admin/rpms/vista/BUILD/rangev3-0.12.0\
/include -std=c++20 -fast -O3 -DNDEBUG -std=c++14 -Wall -Wextra -ftemplate-backtrace-limit=0 -fomit-frame-pointer -Ofast -fstrict-aliasing -march=native -mtune=native -DRANGES_CXX_ALIGNED_NEW=0 -pe\
dantic -MD -MT test/action/CMakeFiles/range.v3.act.reverse.dir/reverse.cpp.o -MF CMakeFiles/range.v3.act.reverse.dir/reverse.cpp.o.d -o CMakeFiles/range.v3.act.reverse.dir/reverse.cpp.o -c /admin/b\
uild/admin/rpms/vista/BUILD/rangev3-0.12.0/test/action/reverse.cpp
"/usr/lib/gcc/aarch64-redhat-linux/11/../../../../include/c++/11/type_traits", line 2579: error: class "std::enable_if<false, int>" has no member "type"
      using enable_if_t = typename enable_if<_Cond, _Tp>::type;
                                                          ^
          detected during:
            instantiation of type "std::enable_if_t<false, int>" at line 821 of "/admin/build/admin/rpms/vista/BUILD/rangev3-0.12.0/include/concepts/concepts.hpp"

While I have no idea why other compilers didn't stumble over this, it seems that there is a problem here:

https://en.cppreference.com/w/cpp/types/enable_if

states that under false there is indeed no such type member.

Activity

0

No activity yet.