Issue |
126733
|
Summary |
some libc++ 19.1.0 headers no longer compile with C++11
|
Labels |
libc++
|
Assignees |
|
Reporter |
edfvogel
|
I note that the libc++ 19.1.0 headers contain code that is not valid C++11 code.
For example __type_traits/desugars_to.h contains:
template <class _CanonicalTag, class _Operation, class... _Args>
inline const bool __desugars_to_v = false;
variable templates were introduced in C++14.
If I compile with -Werror -Wstd=c++11 the compiler I use will give an error.
I believe this code (and its uses) should be guarded with _LIBCPP_STD_VERSION >= 14 conditionals.
Thank you for your time in this matter,
Ed Vogel
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs