[cfe-dev] Bug in libc++

Tim Northover via cfe-dev cfe-dev at lists.llvm.org
Mon Aug 21 08:21:18 PDT 2017


> 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.



More information about the cfe-dev mailing list