Skip to content

Compilation error with clang 14 on Apple silicon 13.6.4 #23

@fuhlig1

Description

@fuhlig1

When trying to compile the test suite on an Apple silicon with macosx 13.6.4 and Apple clang 14 I get the following error

CC=clang CXX=clang++ make

gnu++2b: test extensions (-Wall -Wextra -Wpedantic -Wno-attributes -Wno-unknown-pragmas -Wno-psabi -Wno-self-assign-overloaded -Wno-deprecated -I/Users/uhlig/vir-simd)
In file included from vir/test.cpp:7:
In file included from /Users/uhlig/vir-simd/vir/simdize.h:19:
vir/simd_permute.h:176:23: error: no template named 'bit_cast' in namespace 'std'; did you mean 'detail::bit_cast'?
                const VecType vec = std::bit_cast<VecType>(v);
                                    ^~~~~~~~~~~~~
                                    detail::bit_cast
vir/detail.h:155:5: note: 'detail::bit_cast' declared here
    bit_cast(const From& x)
    ^

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions