From 8c5c0b80a45b77182c83c950fb9c7443859d7d98 Mon Sep 17 00:00:00 2001 From: Paul Thomas Date: Fri, 15 Sep 2006 16:30:52 +0000 Subject: re PR fortran/29051 (segfault when too few values are in data statement of character array) 2006-09-15 Paul Thomas PR fortran/29051 * decl.c (match_old_style_init): Set the 'where' field of the gfc_data structure 'newdata'. * match.c (match_case_eos): Add a comprehensible error message. 2006-09-15 Paul Thomas PR fortran/29051 * gfortran.dg/oldstyle_3.f90: New test. From-SVN: r116977 --- gcc/fortran/decl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/fortran/decl.c') diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index 19bf1b0..6045b20 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -395,6 +395,7 @@ match_old_style_init (const char *name) newdata = gfc_get_data (); newdata->var = gfc_get_data_variable (); newdata->var->expr = gfc_get_variable_expr (st); + newdata->where = gfc_current_locus; /* Match initial value list. This also eats the terminal '/'. */ -- cgit v1.1