https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |compile-time-hog Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-04-04 Version|unknown |8.0.1 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- find_base_term is known to be quadratic... (there's some dups for this I bet). I suppose you tested trunk. I guess since this is present for such a long time now we should simply limit the with and/or depth of the find_base_term recursion given it's safe to return 0.