http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50040

             Bug #: 50040
           Summary: [4.5/4.6/4.7 Regression] missed warning: ‘x.y’ is used
                    uninitialized in this function
    Classification: Unclassified
           Product: gcc
           Version: 4.5.4
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: middle-end
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: jan.kratoch...@redhat.com
            Target: x86_64-unknown-linux-gnu


PASS: gcc (GCC) 4.4.7 20110810 (prerelease)
FAIL: gcc (GCC) 4.5.4 20110810 (prerelease)
FAIL: gcc (GCC) 4.6.2 20110810 (prerelease)
FAIL: gcc (GCC) 4.7.0 20110810 (experimental)

int *p;
void f (void)
{
  struct { int y; } x;
  *p = x.y;
}
--------------------------------------------------------------------------------
-c -Wall -O2
--------------------------------------------------------------------------------
PASS:
1.c: In function ‘f’:
1.c:5: warning: ‘x.y’ is used uninitialized in this function
FAIL:
<nothing>

Reply via email to