[EMAIL PROTECTED] uninit-2]$ cat x.c
typedef int mpz_t[1];
typedef struct iterator_stack
{
  struct iterator_stack *prev;
  mpz_t value;
} iterator_stack;
iterator_stack *x;
void bar (mpz_t);
void
foo ()
{
  iterator_stack frame;
  bar (frame.value);
  x = frame.prev;
}
[EMAIL PROTECTED] uninit-2]$ make
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -O2 -Wuninitialized -S x.c


It seems that gcc is confused by

typedef int mpz_t[1];


-- 
           Summary: Failed to warn uninitialized stack variable
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl at lucon dot org


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

Reply via email to