[cfe-dev] Bug in libc++

Brian Cain via cfe-dev cfe-dev at lists.llvm.org
Mon Aug 21 08:31:37 PDT 2017


This bug seems to hint that libstdc++ had a bug in how it treated this and
claims that ECMAScript sayd that \W should be equivalent to [\W] --
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61227

On Mon, Aug 21, 2017 at 10:21 AM, Tim Northover via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> > I think libc++ is correct. C++11 defines \W as being equivalent to
> > [^_[:alnum:]], which means your regex is "[^[^_[:alnum:]]]". I believe
> > that'll be parsed as "some weird character followed by ]]".
>
> Sorry, just one ] at the end since there is still a valid [:alnum:] in
> there.
>
> Tim.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>



-- 
-Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170821/6e66c875/attachment.html>


More information about the cfe-dev mailing list