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

            Bug ID: 91234
           Summary: No warning on uninitialized variables
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: srinivas.kakarla1 at tcs dot com
  Target Milestone: ---

No warning on z and a.x uninitialized variables

#include<stdio.h>

struct xy {
    int x;
    int y;
};

int main(void) {

    struct xy a;
    int z = a.x;
    printf(" \n %d" ,z);
    printf(" \n %d ",a.x);
}

gcc : 5.4.0
OS  : Ubuntu 16.X

Regards,
Srinivas

Reply via email to