From: Kyrylo Tkachov Date: Tue, 11 Nov 2014 11:52:36 +0000 (+0000) Subject: [Fortran] PR 63701 Make sure variable is always used initialised X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36a8422688457ada0e191fda2c03f602fe08b6b7;p=gcc.git [Fortran] PR 63701 Make sure variable is always used initialised PR fortran/63701 * trans-expr.c (gfc_get_tree_for_caf_expr): Initialise found to false. From-SVN: r217345 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 576e69407f1..7c89d33acda 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2014-11-11 Kyrylo Tkachov + + PR fortran/63701 + * trans-expr.c (gfc_get_tree_for_caf_expr): Initialise found to false. + 2014-11-10 Janne Blomqvist PR libfortran/47007 diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c index 18bc502a7c8..b36acbe1ea2 100644 --- a/gcc/fortran/trans-expr.c +++ b/gcc/fortran/trans-expr.c @@ -1406,7 +1406,7 @@ tree gfc_get_tree_for_caf_expr (gfc_expr *expr) { tree caf_decl; - bool found; + bool found = false; gfc_ref *ref; gcc_assert (expr && expr->expr_type == EXPR_VARIABLE);