[LLVMdev] D10669: libc++ tests for C++17 features may fail if compiled with -std=c++1y / c++0x
Oleg Ranevskyy
llvm.mail.list at gmail.com
Mon Jul 20 14:32:43 PDT 2015
Hello Marshall,
I am getting compilation errors while compiling the libc++ tests.
Would you be able to take a look at this, please?
http://reviews.llvm.org/D10669 introduced support for several C++17
features and added tests for them.
The tests are protected with "UNSUPPORTED: c++03, c++11, c++14", which
is fine but seems to be incomplete.
We configure libc++ with the "-DLIBCXX_ENABLE_CXX1Y=ON" option that
results in -std=c++1y flag for the compiler. C++1y is not in the
UNSUPPORTED list and the tests fail to compile.
As C++1y was generally used before C++14 Standard publishing and the
Standard has already been published, does it make sense to rename
LIBCXX_ENABLE_CXX1Y to LIBCXX_ENABLE_CXX14 and use -std=c++14 instead of
-std=c++1y?
User can also specify C++ version from the lit command line or in his
own lit config, so the UNSUPPORTED list must be extended with c++1y /
c++0x anyway.
I can do all the necessary changes if you approve them.
Thanks,
Oleg
More information about the llvm-dev
mailing list