[Diffusion] rL344207: Distinguish between library and language support for aligned allocation.
Akira Hatanaka via Phabricator
reviews at reviews.llvm.org
Fri Jan 4 16:20:52 PST 2019
ahatanak edited subscribers, added: EricWF, libcxx-commits, ahatanak; removed: hiraditya.
ahatanak added a comment.
It seems like this patch causes clang to accept the following code when compiled with -std=c++11. Is this the expected behavior? Shouldn't the compiler reject the code if it's not compiled with -std=c++17 or newer?
$ cat test.cpp
#include <new>
void *p;
int main()
{
operator delete(p, (std::align_val_t)256);
return 0;
}
$ clang++ -std=c++11 test.cpp
Users:
EricWF (Author)
https://reviews.llvm.org/rL344207
More information about the libcxx-commits
mailing list