aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2008-01-11 21:15:41 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2008-01-11 21:15:41 +0000
commitbc9d9552fd2fefe318c1e349fd91091d86c69075 (patch)
tree7be4559d1ba26d2d64e60c371c810248149f11e8
parent0d40cc60e875e070d2b11e368e9d602e02faccfe (diff)
downloadgcc-bc9d9552fd2fefe318c1e349fd91091d86c69075.zip
gcc-bc9d9552fd2fefe318c1e349fd91091d86c69075.tar.gz
gcc-bc9d9552fd2fefe318c1e349fd91091d86c69075.tar.bz2
re PR fortran/34722 (ICE: left-over "@iostat" variable polutes namespace)
2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/34722 * trans-io.c (create_dummy_iostat): Commit the symbol. From-SVN: r131475
-rw-r--r--gcc/fortran/ChangeLog5
-rw-r--r--gcc/fortran/trans-io.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 645cbdb..1874ff9 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR fortran/34722
+ * trans-io.c (create_dummy_iostat): Commit the symbol.
+
2008-01-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34537
diff --git a/gcc/fortran/trans-io.c b/gcc/fortran/trans-io.c
index 6c43849..70a4b37 100644
--- a/gcc/fortran/trans-io.c
+++ b/gcc/fortran/trans-io.c
@@ -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);