Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile problem against aa64 stdlib #1846

Open
VictorEijkhout opened this issue Dec 20, 2024 · 0 comments
Open

Compile problem against aa64 stdlib #1846

VictorEijkhout opened this issue Dec 20, 2024 · 0 comments

Comments

@VictorEijkhout
Copy link

[  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant