Latest trunk gives a set but not used warning for the following code:

int
foo (int status)
{
  if ((((signed char) ((((__extension__ ({ union { __typeof(status) __in; int
__i; } __u; __u.__in = (status); __u.__i; }))) & 0x7f) + 1) >> 1) > 0))
    return 0;
  else
    return 1;
}

It's a reduced test case from bootstraping gcc failure on Ubuntu 9.04.


-- 
           Summary: False set  but not used warning
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: regression
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jiez at gcc dot gnu dot org
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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

Reply via email to