[Bug fortran/45077] ICE with -fwhole-file in fold_convert_loc, at fold-const.c:2021
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Jul 28 07:44:00 GMT 2010
------- Comment #2 from burnus at gcc dot gnu dot org 2010-07-28 07:43 -------
Patch. Note: It still fails if one moves "module iso_red" into a separate file.
Cf. PR 44945. The reason is that then "gsym" will come up as NULL and every
module user uses a different decl.
Index: trans-types.c
===================================================================
--- trans-types.c (revision 162617)
+++ trans-types.c (working copy)
@@ -1994,6 +1994,8 @@ gfc_get_derived_type (gfc_symbol * deriv
gfc_symbol *s;
s = NULL;
gfc_find_symbol (derived->name, gsym->ns, 0, &s);
+ if (s && !s->backend_decl)
+ s->backend_decl = gfc_get_derived_type (s);
if (s && s->backend_decl)
{
gfc_copy_dt_decls_ifequal (s, derived, true);
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |burnus at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-07-28 07:43:55
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45077
More information about the Gcc-bugs
mailing list