[Fortran] PR 63701 Make sure variable is always used initialised
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 11 Nov 2014 11:52:36 +0000 (11:52 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Tue, 11 Nov 2014 11:52:36 +0000 (11:52 +0000)
PR fortran/63701
* trans-expr.c (gfc_get_tree_for_caf_expr): Initialise found to false.

From-SVN: r217345

gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c

index 576e69407f13c7c66dc0c8a1a3cb8f32e809f069..7c89d33acda029ddd91409d333aba7c4ac244fe3 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       PR fortran/63701
+       * trans-expr.c (gfc_get_tree_for_caf_expr): Initialise found to false.
+
 2014-11-10  Janne Blomqvist  <jb@gcc.gnu.org>
 
        PR libfortran/47007
index 18bc502a7c87ff615e328a801bb57fd557bbba08..b36acbe1ea22d5b24269607785ea47ad07b894bf 100644 (file)
@@ -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);