<div dir="ltr">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] -- <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61227">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61227</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 21, 2017 at 10:21 AM, Tim Northover via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> I think libc++ is correct. C++11 defines \W as being equivalent to<br>
> [^_[:alnum:]], which means your regex is "[^[^_[:alnum:]]]". I believe<br>
> that'll be parsed as "some weird character followed by ]]".<br>
<br>
</span>Sorry, just one ] at the end since there is still a valid [:alnum:] in there.<br>
<div class="HOEnZb"><div class="h5"><br>
Tim.<br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">-Brian</div>
</div>