[all-commits] [llvm/llvm-project] 6d2a66: [libc++] ECMAScript IdentityEscape is ambiguous (2...

Zoe Carver via All-commits all-commits at lists.llvm.org
Thu May 7 14:28:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d2a66b10d458e34c852be46028092d2b46edc14
      https://github.com/llvm/llvm-project/commit/6d2a66b10d458e34c852be46028092d2b46edc14
  Author: zoecarver <z.zoelec2 at gmail.com>
  Date:   2020-05-07 (Thu, 07 May 2020)

  Changed paths:
    M libcxx/include/regex
    M libcxx/test/std/re/re.alg/re.alg.match/ecma.pass.cpp
    M libcxx/test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp
    M libcxx/www/cxx1z_status.html

  Log Message:
  -----------
  [libc++] ECMAScript IdentityEscape is ambiguous (2584)

This patch fixes [[ https://cplusplus.github.io/LWG/issue2584 | 2584 ]]. Now the following works:
    const std::regex r1("\\z");
    assert(std::regex_match("z", r1));

Differential Revision: https://reviews.llvm.org/D66610




More information about the All-commits mailing list