public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/22240] New: ICE with transparent unions, function pointers and -pedantic
@ 2005-06-30  0:15 jsm28 at gcc dot gnu dot org
  2005-06-30  2:14 ` [Bug c/22240] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-06-30  0:15 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/22240] ICE with transparent unions, function pointers and -pedantic
  2005-06-30  0:15 [Bug c/22240] New: ICE with transparent unions, function pointers and -pedantic jsm28 at gcc dot gnu dot org
@ 2005-06-30  2:14 ` pinskia at gcc dot gnu dot org
  2005-07-29  2:50 ` cvs-commit at gcc dot gnu dot org
  2005-07-29  5:39 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-30  2:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-30 02:13 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |2.95 3.0.4 3.2.2 4.0.0 3.4.0
                   |                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-06-30 02:13:58
               date|                            |


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/22240] ICE with transparent unions, function pointers and -pedantic
  2005-06-30  0:15 [Bug c/22240] New: ICE with transparent unions, function pointers and -pedantic jsm28 at gcc dot gnu dot org
  2005-06-30  2:14 ` [Bug c/22240] " pinskia at gcc dot gnu dot org
@ 2005-07-29  2:50 ` cvs-commit at gcc dot gnu dot org
  2005-07-29  5:39 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-29  2:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-29 02:47 -------
Subject: Bug 22240

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	jsm28@gcc.gnu.org	2005-07-29 02:46:50

Modified files:
	gcc            : ChangeLog c-typeck.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg: transparent-union-4.c 

Log message:
	PR c/22240
	* c-typeck.c (convert_for_assignment): Do not check
	DECL_IN_SYSTEM_HEADER on NULL fundecl.
	
	testsuite:
	* gcc.dg/transparent-union-4.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9595&r2=2.9596
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.471&r2=1.472
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5849&r2=1.5850
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/transparent-union-4.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/22240] ICE with transparent unions, function pointers and -pedantic
  2005-06-30  0:15 [Bug c/22240] New: ICE with transparent unions, function pointers and -pedantic jsm28 at gcc dot gnu dot org
  2005-06-30  2:14 ` [Bug c/22240] " pinskia at gcc dot gnu dot org
  2005-07-29  2:50 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-29  5:39 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-29  5:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-29 05:39 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.0


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-07-29  5:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-30  0:15 [Bug c/22240] New: ICE with transparent unions, function pointers and -pedantic jsm28 at gcc dot gnu dot org
2005-06-30  2:14 ` [Bug c/22240] " pinskia at gcc dot gnu dot org
2005-07-29  2:50 ` cvs-commit at gcc dot gnu dot org
2005-07-29  5:39 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).