diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-24 13:11:08 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-24 13:11:08 +0000 |
commit | 764ede1f8610b94dff9b98dbc433d1a7485c4f4c (patch) | |
tree | 9ad24c7dc71f8f332ea010635e201a3e6e1c9882 /gcc/fortran/expr.c | |
parent | 93fc59e8421dfdd82d555a024ad6cdc4eb280b5b (diff) |
2011-08-24 Tobias Burnus <burnus@net-b.de>
PR fortran/50163
* expr.c (check_init_expr): Return when an error
occured.
2011-08-24 Tobias Burnus <burnus@net-b.de>
PR fortran/50163
* gfortran.dg/initialization_28.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178038 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/expr.c')
-rw-r--r-- | gcc/fortran/expr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/fortran/expr.c b/gcc/fortran/expr.c index 9922094fd6e2..b050b116ca5d 100644 --- a/gcc/fortran/expr.c +++ b/gcc/fortran/expr.c @@ -2481,6 +2481,9 @@ check_init_expr (gfc_expr *e) m = MATCH_ERROR; } + if (m == MATCH_ERROR) + return FAILURE; + /* Try to scalarize an elemental intrinsic function that has an array argument. */ isym = gfc_find_function (e->symtree->n.sym->name); |