When doing that NFC refactor, I'd messed up how char8_t was reported,
which resulted in it being considered a 'future' keyword, without the
corresponding diagnostic, which lead to an assert. This patch corrects
the char8_t to ONLY be future in C++ mode.
case CHAR8SUPPORT:
if (LangOpts.Char8) return KS_Enabled;
if (LangOpts.CPlusPlus20) return KS_Unknown;
- return KS_Future;
+ if (LangOpts.CPlusPlus) return KS_Future;
+ return KS_Unknown;
case KEYOBJC:
// We treat bridge casts as objective-C keywords so we can warn on them
// in non-arc mode.