From b64c3d0696c572b7fc21fecfd78b9aaadf2b4892 Mon Sep 17 00:00:00 2001 From: "Steven G. Kargl" Date: Fri, 2 Oct 2015 00:45:59 +0000 Subject: re PR fortran/67616 (ICE on data initialization of type variable in block) 2015-10-01 Steven G. Kargl PR fortran/67616 * primary.c (gfc_match_structure_constructor): Use a possibly host-associated symtree to prevent ICE. 2015-10-01 Steven G. Kargl PR fortran/67616 * gfortran.dg/pr67616.f90: New test. From-SVN: r228363 --- gcc/fortran/ChangeLog | 6 ++++++ gcc/fortran/primary.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'gcc/fortran') diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 2830c91..2a306e5 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2015-10-01 Steven G. Kargl + + PR fortran/67616 + * primary.c (gfc_match_structure_constructor): Use a possibly + host-associated symtree to prevent ICE. + 2015-09-28 Paul Thomas PR fortran/40054 diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c index c8c6581..9f75666 100644 --- a/gcc/fortran/primary.c +++ b/gcc/fortran/primary.c @@ -2697,7 +2697,7 @@ gfc_match_structure_constructor (gfc_symbol *sym, gfc_expr **result) gfc_expr *e; gfc_symtree *symtree; - gfc_get_sym_tree (sym->name, NULL, &symtree, false); /* Can't fail */ + gfc_get_ha_sym_tree (sym->name, &symtree); e = gfc_get_expr (); e->symtree = symtree; -- cgit v1.1