------- Comment #12 from burnus at gcc dot gnu dot org  2010-02-27 12:24 -------
(In reply to comment #11)
> With the patch in comment #10, the tests in pr40440 (the original one and the
> one in comment #2 give an ICE:

Thanks for testing! In trans-array.c's gfc_trans_deferred_array, my current
version has

-     if (sym->value)
+     if (sym->value == NULL || !has_default_initializer (sym->ts.u.derived))
          ^^^^^^^^^^^^^^^^^^^^^^
          This part is new

Hopefully, that is all what is needed. Still, the patch needs to be audited - I
wouldn't be surprised if some "free" were missing, leading to memory leakage in
the generated code.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43178

Reply via email to