diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 2c3ce54390d0..99c82d2c34b1 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2010-12-03 Thomas Koenig + + PR fortran/44352 + * dump-parse-tree.c (show_symbol): Don't show formal namespace + for statement functions in order to avoid infinite recursion. + 2010-12-03 Thomas Koenig PR fortran/45159 diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c index 41af932565d7..c237fe6df23c 100644 --- a/gcc/fortran/dump-parse-tree.c +++ b/gcc/fortran/dump-parse-tree.c @@ -889,7 +889,8 @@ show_symbol (gfc_symbol *sym) } } - if (sym->formal_ns && (sym->formal_ns->proc_name != sym)) + if (sym->formal_ns && (sym->formal_ns->proc_name != sym) + && sym->attr.proc != PROC_ST_FUNCTION) { show_indent (); fputs ("Formal namespace", dumpfile);