From 8721a387af0ddc6e88fb30a3b08498ff2db8e127 Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Wed, 20 Apr 2011 20:07:52 +0200 Subject: [PATCH] re PR fortran/48588 (ICE (segfault) in gfc_get_nodesc_array_type) 2011-04-19 Tobias Burnus PR fortran/48588 PR fortran/48692 * module.c (fix_mio_expr): Commit created symbol. From-SVN: r172782 --- gcc/fortran/ChangeLog | 7 +++++++ gcc/fortran/module.c | 1 + 2 files changed, 8 insertions(+) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index ca02edfa7b5..7a857a47664 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,10 @@ +2011-04-19 Tobias Burnus + + PR fortran/48588 + PR fortran/48692 + + * module.c (fix_mio_expr): Commit created symbol. + 2011-04-19 Janne Blomqvist * scanner.c (load_file): Use XCNEWVAR instead of xcalloc. diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index e97354f713f..42e8e002692 100644 --- a/gcc/fortran/module.c +++ b/gcc/fortran/module.c @@ -3013,6 +3013,7 @@ fix_mio_expr (gfc_expr *e) sym->attr.flavor = FL_PROCEDURE; sym->attr.generic = 1; e->symtree = gfc_find_symtree (gfc_current_ns->sym_root, fname); + gfc_commit_symbol (sym); } } -- 2.30.2