[PATCH] D153156: [Clang] CWG1473: do not err on the lack of space after operator""

Dmitry Chernenkov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 18 07:17:50 PDT 2023


steelannelida added a comment.

Unfortunately the option -Wno-reserved-user-defined-literal fails after this:

  #define MYTHING "_something_"
  
  const char* f() {
    return "ONE"MYTHING"TWO";
  }

  $ clang -Wno-reserved-user-defined-literal repro.cxx
  repro.cxx:4:15: error: no matching literal operator for call to 'operator""MYTHING' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
      4 |   return "ONE"MYTHING"TWO";
        |               ^
  1 error generated.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D153156



More information about the cfe-commits mailing list