This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/22240] New: ICE with transparent unions, function pointers and -pedantic
- From: "jsm28 at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2005 00:15:09 -0000
- Subject: [Bug c/22240] New: ICE with transparent unions, function pointers and -pedantic
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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