https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85472
--- Comment #21 from Hans Åberg <haberg-1 at telia dot com> --- (In reply to Tim Shen from comment #20) > (In reply to Hans Åberg from comment #18) > > (In reply to Tim Shen from comment #14) > > > I have a C++ test case for this: > > > > I get segmentation fault on the regex_match line with g++ 7.3.0. > > On Linux I set "ulimit -s unlimited". On MacOS, I can change the value, default 8192, but not to unlimited. > The stack overflow is a known issue > because the implementation is recursive. I have a loop, as in Flex and Bison generated parsers.