2010-12-03 Thomas Koenig <tkoenig@gcc.gnu.org>
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Dec 2010 12:23:11 +0000 (12:23 +0000)
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Dec 2010 12:23:11 +0000 (12:23 +0000)
PR fortran/44352
* dump-parse-tree.c (show_symbol):  Don't show formal namespace
for statement functions in order to avoid infinite recursion.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167416 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fortran/ChangeLog
gcc/fortran/dump-parse-tree.c

index 2c3ce54..99c82d2 100644 (file)
@@ -1,5 +1,11 @@
 2010-12-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
+       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  <tkoenig@gcc.gnu.org>
+
        PR fortran/45159
        * dependency.c (check_section_vs_section):  Pre-calculate
        the relationship between the strides and the relationship
index 41af932..c237fe6 100644 (file)
@@ -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);