------- Comment #8 from rguenth at gcc dot gnu dot org 2009-05-03 19:37 ------- This is not a new problem - our recursive GC manages to do this in some cases.
What helps sometimes is to adjust the way structures are linked to avoid too deep recursion. Maybe the GFortran FE trees are not optimized for that? Thus, the question is what are we recursing on here? type.next_variant if my sources are matching yours (look at gt-fortran-f95-lang.h:337). What type do we have so many variants of? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40005