Skip to content

xt::load_npy fails to compile for clang-11 with -std=c++20. #2332

Open
@melton1968

Description

@melton1968
#include <xtensor.hpp>
#include <xtensor/xnpy.hpp>

int main(int argc, const char *argv[]) {
    auto trades = xt::load_npy<double>("out.npy");
    return 0;
}

Compiles with clang-10 -std=c++20 and clang-11, but fails with clang-11 -std=c++20.

clang++-mp-11 -std=c++20 -I ../../cxx-depends/build/cxx-depends-install/include/ -c ../src/tools/\
bug0.cpp > bug0.out 2>&1

Output attached.

bug0.log

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions