[PATCH] D106577: [clang] Define __STDC_ISO_10646__

Joerg Sonnenberger via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 26 16:56:46 PDT 2021


joerg added a comment.

> I still don't fully understand the original comment from Joerg. The encoding of `L'a'` cannot change at runtime; it's a literal whose encoding is decided entirely at compile time. @joerg -- did you mean that Clang produces a different literal encoding depending on the environment the host compiler is running in?

It should, which is exactly why I consider non-trivial wchar_t literals fundamentally flawed as concept. AFAICT the only somewhat portable value is \0.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106577/new/

https://reviews.llvm.org/D106577



More information about the cfe-commits mailing list