Commit 240f9e94 by Daniel Kraft Committed by Daniel Kraft

re PR fortran/40045 (ICE with type extension and -fdump-parse-tree)

2009-05-14  Daniel Kraft  <d@domob.eu>

	PR fortran/40045
	* dump-parse-tree.c (show_typebound): Fix missing adaption to new
	type-bound procedure storage structure.

From-SVN: r147540
parent 6855fe45
2009-05-14 Daniel Kraft <d@domob.eu>
PR fortran/40045
* dump-parse-tree.c (show_typebound): Fix missing adaption to new
type-bound procedure storage structure.
2009-05-14 Janus Weil <janus@gcc.gnu.org> 2009-05-14 Janus Weil <janus@gcc.gnu.org>
PR fortran/39996 PR fortran/39996
......
...@@ -680,9 +680,7 @@ show_components (gfc_symbol *sym) ...@@ -680,9 +680,7 @@ show_components (gfc_symbol *sym)
static void static void
show_typebound (gfc_symtree* st) show_typebound (gfc_symtree* st)
{ {
if (!st->n.tb) gcc_assert (st->n.tb);
return;
show_indent (); show_indent ();
if (st->n.tb->is_generic) if (st->n.tb->is_generic)
...@@ -708,7 +706,7 @@ show_typebound (gfc_symtree* st) ...@@ -708,7 +706,7 @@ show_typebound (gfc_symtree* st)
else else
fputs (", PRIVATE", dumpfile); fputs (", PRIVATE", dumpfile);
fprintf (dumpfile, " :: %s => ", st->n.sym->name); fprintf (dumpfile, " :: %s => ", st->name);
if (st->n.tb->is_generic) if (st->n.tb->is_generic)
{ {
...@@ -739,7 +737,7 @@ show_f2k_derived (gfc_namespace* f2k) ...@@ -739,7 +737,7 @@ show_f2k_derived (gfc_namespace* f2k)
} }
/* Type-bound procedures. */ /* Type-bound procedures. */
gfc_traverse_symtree (f2k->sym_root, &show_typebound); gfc_traverse_symtree (f2k->tb_sym_root, &show_typebound);
--show_level; --show_level;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment