[cfe-dev] [libc++] regex parse wrong in libc++.1.dylib (400.9.4)
Louis Dionne via cfe-dev
cfe-dev at lists.llvm.org
Wed Sep 5 10:01:57 PDT 2018
Can you please check your test case with libc++ trunk? I think this may be r340609 (https://reviews.llvm.org/D50534 <https://reviews.llvm.org/D50534>), which has been fixed already.
If it still fails on trunk, please file a bug report on https://bugs.llvm.org <https://bugs.llvm.org/> with a fully self-contained reproduction. It should be a program that can be run out of the box, with a main function and everything.
Louis
> On Sep 3, 2018, at 02:07, 黄奕 via cfe-dev <cfe-dev at lists.llvm.org> wrote:
>
> System: MacOs 10.13.6
> LibC++ Version: 400.9.4
> LibSystem : 1252.200.5
> IDE: Xcode 10.0 beta
>
>
> ...
> std::regex decode_href() { return std::regex(R"(\[([\s\S]*?)\]\(([\s\S]*?)\))")
> ...
> auto expr = decode_href();
> std::sregex_iterator it(text.cbegin(), text.cend(), expr);
> std::sregex_iterator end;
> for(; it != end; ++it){
> ...
> }
> ...
>
> I found in ver 400.9.4, it could not parse successfully with an input of "[URL](https://www.baidu.com)" <https://www.baidu.com)"/> (text = "[URL](https://www.baidu.com)"). <https://www.baidu.com)")./>
> while it works well in ver 400.9.0.
> I m not sure it is a bug or
>
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180905/9d047688/attachment.html>
More information about the cfe-dev
mailing list