../../src/trunk/gcc/fortran/trans-expr.c:1424:25: warning: variable 'found' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] $ fgrep -n found gcc/fortran/trans-expr.c 1409: bool found; 1438: found = true; 1442: gcc_assert (found && caf_decl); Missing init of "found" to false at line 1409.
found is expected to be always set to true at line 1438, that's what the gcc_assert is for. But I agree that it should be initialised to false.
Author: ktkachov Date: Tue Nov 11 11:52:36 2014 New Revision: 217345 URL: https://gcc.gnu.org/viewcvs?rev=217345&root=gcc&view=rev Log: [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. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-expr.c
Fixed on trunk.