[libcxx-commits] [PATCH] D92212: Make libcxx work according to Clang C++ Status if -fchar8_t is passed
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Nov 27 07:15:57 PST 2020
ldionne requested changes to this revision.
ldionne added a comment.
This revision now requires changes to proceed.
So.. my issue with this is that it's a step towards enabling C++20 features in C++17 mode, which is just a bad idea to begin with. We have plenty of problems caused by trying to support features in older standards, and I just don't see the point of it. If you need `char8_t`, just use `-std=c++20` -- what's the issue?
So, actually, a change that would be more in line with what I'd like is instead:
#if _LIBCPP_STD_VER <= 17
Then, we'd assume that if you're building as C++20, then you do have `char8_t` support. This would only break on older compilers, which we currently claim to support but don't actually support properly (we don't test on a regular basis, etc).
I'm definitely willing to have a conversation about this, though, so I'm eager to hear what you have to say about the above.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92212/new/
https://reviews.llvm.org/D92212
More information about the libcxx-commits
mailing list