https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85472
Bug ID: 85472 Summary: Regex match bug Product: gcc Version: 7.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: haberg-1 at telia dot com Target Milestone: --- Created attachment 43993 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43993&action=edit The regex example mentioned in the report. In the regex "(z)((a+)?(b+)?(c))*" example at [1], also attached, 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). 1. http://en.cppreference.com/w/cpp/regex/ecmascript