https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61582
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2014-06-25 00:00:00 |2021-12-16 Assignee|timshen at gcc dot gnu.org |redi at gcc dot gnu.org --- Comment #24 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Maksymilian Arciemowicz from comment #12) > Ups. Check this (.*{100}{300}) This one still results in a stack overflow on trunk, with an 8MB stack. That is: std::regex_match("a", std::regex("(.*{100}{300})")); I have a proof-of-concept patch replacing the recursion in _Executor. The example above runs successfully with a 16k stack limit.