Clang 16 can't compile stl container with a __restrict pointer in C++ 23 mode · Issue #63662 · llvm/llvm-project (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@nuudlman

Description

@nuudlman

problem goes away as soon as the __restrict qualifier is removed. compiles with GCC and MSVC
https://godbolt.org/z/v8o1xsna6

minimal example:

#include

void test() { std::vector<void *__restrict> testvec; }

other output elided:

error: no matching function for call to 'operator delete'
note: candidate function not viable: no known conversion from 'void *__restrict *' to 'void *' for 1st argument; dereference the argument with *