This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Regex match bug
- From: Hans Åberg <haberg-1 at telia dot com>
- To: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 19 Apr 2018 18:48:43 +0200
- Subject: Re: Regex match bug
- References: <C64BBF66-2162-4268-9888-4EDC0054CA0C@telia.com> <CAH6eHdR1BFSCOfptpuEpPYcMQ7D=SwdPwUdVO49c=aZqLrt8EA@mail.gmail.com>
> On 19 Apr 2018, at 18:41, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
>
> On 19 April 2018 at 17:21, Hans Åberg wrote:
>> 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.
Indeed, that is how I happened to come across it.
> Could you create a bug report please?
>
> https://gcc.gnu.org/bugs/
I do not have account there, so it might be faster someone else does this.