Regex match bug

Jonathan Wakely jwakely.gcc@gmail.com
Thu Apr 19 16:41:00 GMT 2018


On 19 April 2018 at 17:21, Hans Åberg wrote:
> [Please cc me, as I am not on this list.]
>
> There may be a bug in the regex library of g++ 7.3.0: In the regex "(z)((a+)?(b+)?(c))*" example at [1], applied to the string "zaacbbbcac", g++ produces a pattern #4 match as "bbb", whereas it says there it should be empty (the latter which clang++ does).

I think "bbb" is correct for some regex syntaxes, but not the
ECMAScript default. Could you create a bug report please?

https://gcc.gnu.org/bugs/



More information about the Libstdc++ mailing list