Commit 64754ed5 by Richard Guenther Committed by Richard Biener

trans-types.c (gfc_get_derived_type): Do not clear TYPE_CANONICAL.

2009-08-12  Richard Guenther  <rguenther@suse.de>

	* trans-types.c (gfc_get_derived_type): Do not clear TYPE_CANONICAL.

From-SVN: r150676
parent 12d74f0d
2009-08-11 Richard Guenther <rguenther@suse.de>
* trans-types.c (gfc_get_derived_type): Do not clear TYPE_CANONICAL.
2009-08-11 Janus Weil <janus@gcc.gnu.org>
PR fortran/41022
......
......@@ -2123,7 +2123,8 @@ gfc_get_derived_type (gfc_symbol * derived)
/* Now we have the final fieldlist. Record it, then lay out the
derived type, including the fields. */
TYPE_FIELDS (typenode) = fieldlist;
TYPE_CANONICAL (typenode) = canonical;
if (canonical)
TYPE_CANONICAL (typenode) = canonical;
gfc_finish_type (typenode);
gfc_set_decl_location (TYPE_STUB_DECL (typenode), &derived->declared_at);
......
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