The following source should compile on powerpc-darwin with no errors:
struct a {  double a[2]; int i; };
struct b { double a; double b; int i; };
int g[sizeof(struct a) == sizeof(struct b)?1:-1];

But currently it does not because we don't take into account that the type of
the array.


-- 
           Summary: Another ABI incompatibility with Apple's gcc
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: wrong-code, rejects-valid, ABI
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: powerpc-darwin


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

Reply via email to