[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug fortran/63701] New: trans-expr.c:1424: missing init for local variable "found"
From:       "dcb314 at hotmail dot com" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2014-10-31 16:25:05
Message-ID: bug-63701-4 () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63701

            Bug ID: 63701
           Summary: trans-expr.c:1424: missing init for local variable
                    "found"
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com

../../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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic