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

            Bug ID: 79358
           Summary: gcc.dg/c99-stdint-1.c fails with excess error
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vogt at linux dot vnet.ibm.com
                CC: krebbel at gcc dot gnu.org
  Target Milestone: ---
              Host: s390x
            Target: s390x

FAIL: gcc.dg/c99-stdint-1.c (test for excess errors) 
Excess errors: 
.../gcc/testsuite/gcc.dg/c99-stdint-1.c:37:57: error: initialization from
incompatible pointer type [-Wincompatible-pointer-types]

--

Reduced test case, compiled with "-std=iso9899:1999 -pedantic-errors -fhosted"
and either -m31 or -m64:

void 
foo  (void) 
{ 
  __typeof__((4294967295U)) a; 
  __typeof__((long unsigned int)0 + 0) *b = &a; 
}

Reply via email to