Commit 40885767 by Tobias Burnus Committed by Tobias Burnus

re PR fortran/50163 (ICE: initialization expression)

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.

From-SVN: r178038
parent 9fcb758b
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 Joseph Myers <joseph@codesourcery.com>
* Make-lang.in (fortran/cpp.o): Remove explicit compilation rule.
......
......@@ -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);
......
2011-08-24 Tobias Burnus <burnus@net-b.de>
PR fortran/50163
* gfortran.dg/initialization_28.f90: New.
2011-08-24 Richard Guenther <rguenther@suse.de>
PR tree-optimization/50067
......
! { dg-do compile }
!
! PR fortran/50163
!
! Contributed by Philip Mason
!
character(len=2) :: xx ='aa'
integer :: iloc=index(xx,'bb') ! { dg-error "has not been declared or is a variable" }
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment