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

            Bug ID: 82810
           Summary: missed uninitialized variable warning in for/while
                    loop
           Product: gcc
           Version: 6.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jan.smets at nokia dot com
  Target Milestone: ---

In the following code x clearly is used uninitialized

#include <stdio.h>
int main(void)
{
    while (1) 
    {   
        int x;  
        printf("x=%d\n", x); 
        x = 0;
    }   
    return 0;
}

Possibly dup of 82101 ?

Reply via email to