diff options
author | Thomas Koenig <tkoenig@gcc.gnu.org> | 2010-12-03 12:23:11 +0000 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2010-12-03 12:23:11 +0000 |
commit | 3609dfbf133eede9097ed5019563a617a9d2e207 (patch) | |
tree | bcf01bc565c06d93e46958cf1708ca7007b7da55 /gcc/fortran/dump-parse-tree.c | |
parent | 753de8cffaad47947ea7c04a6c91e1e842a7af1c (diff) | |
download | gcc-3609dfbf133eede9097ed5019563a617a9d2e207.zip gcc-3609dfbf133eede9097ed5019563a617a9d2e207.tar.gz gcc-3609dfbf133eede9097ed5019563a617a9d2e207.tar.bz2 |
re PR fortran/44352 (ICE in string_to_single_character)
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.
From-SVN: r167416
Diffstat (limited to 'gcc/fortran/dump-parse-tree.c')
-rw-r--r-- | gcc/fortran/dump-parse-tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c index 41af932..c237fe6 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); |