[patch, fortran] [4.3 Regression] ICE: left-over "@iostat" variable polutes namespace

Jerry DeLisle jvdelisle@verizon.net
Fri Jan 11 21:19:00 GMT 2008


I will commit the following one-liner under obvious and simple rule.

Regression tested on x86-64.  Test case attached.

Jerry

Index: trans-io.c
===================================================================
--- trans-io.c  (revision 131460)
+++ trans-io.c  (working copy)
@@ -1095,6 +1095,7 @@ create_dummy_iostat (void)
    st->n.sym->ts.type = BT_INTEGER;
    st->n.sym->ts.kind = gfc_default_integer_kind;
    gfc_set_sym_referenced (st->n.sym);
+  gfc_commit_symbol (st->n.sym);
    st->n.sym->backend_decl
         = gfc_create_var (gfc_get_int_type (st->n.sym->ts.kind),
                           st->n.sym->name);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inquire_12.f90
Type: text/x-fortran
Size: 257 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080111/74199338/attachment.bin>


More information about the Gcc-patches mailing list