https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61871
--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> --- Ops, I was also testing with this patch: --cut here-- Index: go/regexp/all_test.go =================================================================== --- go/regexp/all_test.go (revision 213529) +++ go/regexp/all_test.go (working copy) @@ -475,7 +475,7 @@ // This ran out of stack before issue 7608 was fixed. func TestOnePassCutoff(t *testing.T) { - MustCompile(`^(?:x{1,1000}){1,1000}$`) + MustCompile(`^(?:x{1,1000}){1,500}$`) } func BenchmarkLiteral(b *testing.B) { --cut here--