typedef union { union w *u; int *i; } H __attribute__ ((transparent_union));
void (*h) (H);
void g (int *s) { h (s); }

yields an ICE when compiled with -pedantic.  Not a regression.  See discussion
at <http://gcc.gnu.org/ml/gcc/2005-06/msg00914.html> and thread;
DECL_IN_SYSTEM_HEADER is being checked on a NULL fundecl.

-- 
           Summary: ICE with transparent unions, function pointers and -
                    pedantic
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsm28 at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to