https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66310
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37811|0 |1 is obsolete| | --- Comment #10 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Created attachment 38723 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38723&action=edit A better patch This patch sets a hard limit on the maximum number of copies in a repeat. I picked a somewhat arbitrary a limit of 100000000 since this worked on my machine with out consuming all memory and crippling the system.