https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61601
--- Comment #5 from Tim Shen <timshen at gcc dot gnu.org> --- > cpu exhaustion not eliminated > > PoC: (.*{100}{200}findme) I tried to run: #include <regex> using namespace std; int main (int argc, char *argv[]) { string input; regex r(argv[1]); return 0; } Against '(.*{100}{200}findme)' and there's no cpu exhaustion. Do you have any other testcases?