public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/39084]  New: [4.3/4.4 regression] ice on struct redefinition
@ 2009-02-03 14:27 bonzini at gnu dot org
  2009-02-03 14:28 ` [Bug c/39084] " bonzini at gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: bonzini at gnu dot org @ 2009-02-03 14:27 UTC (permalink / raw)
  To: gcc-bugs

The following program ICEs at -O2 or higher:

struct color { };
static const struct color col;
struct color * f(void)
{
    return (struct color *) &col;
}

struct color { };


-- 
           Summary: [4.3/4.4 regression] ice on struct redefinition
           Product: gcc
           Version: 4.3.4
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bonzini at gnu dot org


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


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

* [Bug c/39084] [4.3/4.4 regression] ice on struct redefinition
  2009-02-03 14:27 [Bug c/39084] New: [4.3/4.4 regression] ice on struct redefinition bonzini at gnu dot org
@ 2009-02-03 14:28 ` bonzini at gnu dot org
  2009-02-03 14:34 ` bonzini at gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bonzini at gnu dot org @ 2009-02-03 14:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from bonzini at gnu dot org  2009-02-03 14:28 -------
f.c:8: error: redefinition of 'struct color'
f.c:8: internal compiler error: in layout_type, at stor-layout.c:1881
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 

bonzini at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|                            |4.3.4 4.4.0
      Known to work|                            |4.2.3
   Last reconfirmed|0000-00-00 00:00:00         |2009-02-03 14:28:05
               date|                            |


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


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

* [Bug c/39084] [4.3/4.4 regression] ice on struct redefinition
  2009-02-03 14:27 [Bug c/39084] New: [4.3/4.4 regression] ice on struct redefinition bonzini at gnu dot org
  2009-02-03 14:28 ` [Bug c/39084] " bonzini at gnu dot org
@ 2009-02-03 14:34 ` bonzini at gnu dot org
  2009-02-03 15:31 ` rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bonzini at gnu dot org @ 2009-02-03 14:34 UTC (permalink / raw)
  To: gcc-bugs



-- 

bonzini at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.4


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


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

* [Bug c/39084] [4.3/4.4 regression] ice on struct redefinition
  2009-02-03 14:27 [Bug c/39084] New: [4.3/4.4 regression] ice on struct redefinition bonzini at gnu dot org
  2009-02-03 14:28 ` [Bug c/39084] " bonzini at gnu dot org
  2009-02-03 14:34 ` bonzini at gnu dot org
@ 2009-02-03 15:31 ` rguenth at gcc dot gnu dot org
  2009-02-06 22:47 ` sje at cup dot hp dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-02-03 15:31 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery
           Priority|P3                          |P4


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


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

* [Bug c/39084] [4.3/4.4 regression] ice on struct redefinition
  2009-02-03 14:27 [Bug c/39084] New: [4.3/4.4 regression] ice on struct redefinition bonzini at gnu dot org
                   ` (2 preceding siblings ...)
  2009-02-03 15:31 ` rguenth at gcc dot gnu dot org
@ 2009-02-06 22:47 ` sje at cup dot hp dot com
  2009-02-06 22:48 ` sje at cup dot hp dot com
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: sje at cup dot hp dot com @ 2009-02-06 22:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from sje at cup dot hp dot com  2009-02-06 22:46 -------
I don't get an ICE on this test case at any optimization level on IA64, PA, or
x86.  This is with r143978.  Perhaps it has been fixed with the patch to
another bug?


-- 

sje at cup dot hp dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at cup dot hp dot com


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


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

* [Bug c/39084] [4.3/4.4 regression] ice on struct redefinition
  2009-02-03 14:27 [Bug c/39084] New: [4.3/4.4 regression] ice on struct redefinition bonzini at gnu dot org
                   ` (3 preceding siblings ...)
  2009-02-06 22:47 ` sje at cup dot hp dot com
@ 2009-02-06 22:48 ` sje at cup dot hp dot com
  2009-02-07 19:18 ` hjl dot tools at gmail dot com
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: sje at cup dot hp dot com @ 2009-02-06 22:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from sje at cup dot hp dot com  2009-02-06 22:48 -------
Nevermind, now I got it.


-- 


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


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

* [Bug c/39084] [4.3/4.4 regression] ice on struct redefinition
  2009-02-03 14:27 [Bug c/39084] New: [4.3/4.4 regression] ice on struct redefinition bonzini at gnu dot org
                   ` (4 preceding siblings ...)
  2009-02-06 22:48 ` sje at cup dot hp dot com
@ 2009-02-07 19:18 ` hjl dot tools at gmail dot com
  2009-02-10 16:33 ` sje at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-07 19:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from hjl dot tools at gmail dot com  2009-02-07 19:18 -------
I think it is caused by revision 129491:

http://gcc.gnu.org/ml/gcc-cvs/2007-10/msg00596.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenther at suse dot de


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


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

* [Bug c/39084] [4.3/4.4 regression] ice on struct redefinition
  2009-02-03 14:27 [Bug c/39084] New: [4.3/4.4 regression] ice on struct redefinition bonzini at gnu dot org
                   ` (5 preceding siblings ...)
  2009-02-07 19:18 ` hjl dot tools at gmail dot com
@ 2009-02-10 16:33 ` sje at gcc dot gnu dot org
  2009-02-10 16:34 ` sje at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: sje at gcc dot gnu dot org @ 2009-02-10 16:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from sje at gcc dot gnu dot org  2009-02-10 16:33 -------
Subject: Bug 39084

Author: sje
Date: Tue Feb 10 16:33:19 2009
New Revision: 144067

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144067
Log:
        PR c/39084
        * c-decl.c (start_struct): Return NULL on error.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-decl.c


-- 


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


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

* [Bug c/39084] [4.3/4.4 regression] ice on struct redefinition
  2009-02-03 14:27 [Bug c/39084] New: [4.3/4.4 regression] ice on struct redefinition bonzini at gnu dot org
                   ` (6 preceding siblings ...)
  2009-02-10 16:33 ` sje at gcc dot gnu dot org
@ 2009-02-10 16:34 ` sje at gcc dot gnu dot org
  2009-02-10 16:44 ` sje at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: sje at gcc dot gnu dot org @ 2009-02-10 16:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from sje at gcc dot gnu dot org  2009-02-10 16:34 -------
Subject: Bug 39084

Author: sje
Date: Tue Feb 10 16:34:30 2009
New Revision: 144068

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144068
Log:
        PR c/39084
        gcc.dg/pr39084.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr39084.c
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c/39084] [4.3/4.4 regression] ice on struct redefinition
  2009-02-03 14:27 [Bug c/39084] New: [4.3/4.4 regression] ice on struct redefinition bonzini at gnu dot org
                   ` (7 preceding siblings ...)
  2009-02-10 16:34 ` sje at gcc dot gnu dot org
@ 2009-02-10 16:44 ` sje at gcc dot gnu dot org
  2009-02-10 16:45 ` sje at gcc dot gnu dot org
  2009-02-10 16:49 ` sje at cup dot hp dot com
  10 siblings, 0 replies; 12+ messages in thread
From: sje at gcc dot gnu dot org @ 2009-02-10 16:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from sje at gcc dot gnu dot org  2009-02-10 16:44 -------
Subject: Bug 39084

Author: sje
Date: Tue Feb 10 16:43:49 2009
New Revision: 144070

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144070
Log:
        PR c/39084
        * c-decl.c (start_struct): Return NULL on error.

Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/c-decl.c


-- 


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


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

* [Bug c/39084] [4.3/4.4 regression] ice on struct redefinition
  2009-02-03 14:27 [Bug c/39084] New: [4.3/4.4 regression] ice on struct redefinition bonzini at gnu dot org
                   ` (8 preceding siblings ...)
  2009-02-10 16:44 ` sje at gcc dot gnu dot org
@ 2009-02-10 16:45 ` sje at gcc dot gnu dot org
  2009-02-10 16:49 ` sje at cup dot hp dot com
  10 siblings, 0 replies; 12+ messages in thread
From: sje at gcc dot gnu dot org @ 2009-02-10 16:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from sje at gcc dot gnu dot org  2009-02-10 16:45 -------
Subject: Bug 39084

Author: sje
Date: Tue Feb 10 16:45:37 2009
New Revision: 144071

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144071
Log:
        PR c/39084
        gcc.dg/pr39084.c: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr39084.c
Modified:
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c/39084] [4.3/4.4 regression] ice on struct redefinition
  2009-02-03 14:27 [Bug c/39084] New: [4.3/4.4 regression] ice on struct redefinition bonzini at gnu dot org
                   ` (9 preceding siblings ...)
  2009-02-10 16:45 ` sje at gcc dot gnu dot org
@ 2009-02-10 16:49 ` sje at cup dot hp dot com
  10 siblings, 0 replies; 12+ messages in thread
From: sje at cup dot hp dot com @ 2009-02-10 16:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from sje at cup dot hp dot com  2009-02-10 16:49 -------
Fixed on mainline for 4.4.0 and on 4.3 branch for 4.3.4.


-- 

sje at cup dot hp dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to fail|4.3.4 4.4.0                 |4.3.3
      Known to work|4.2.3 4.3.0                 |4.2.3 4.3.0 4.3.4 4.4.0
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2009-02-10 16:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-03 14:27 [Bug c/39084] New: [4.3/4.4 regression] ice on struct redefinition bonzini at gnu dot org
2009-02-03 14:28 ` [Bug c/39084] " bonzini at gnu dot org
2009-02-03 14:34 ` bonzini at gnu dot org
2009-02-03 15:31 ` rguenth at gcc dot gnu dot org
2009-02-06 22:47 ` sje at cup dot hp dot com
2009-02-06 22:48 ` sje at cup dot hp dot com
2009-02-07 19:18 ` hjl dot tools at gmail dot com
2009-02-10 16:33 ` sje at gcc dot gnu dot org
2009-02-10 16:34 ` sje at gcc dot gnu dot org
2009-02-10 16:44 ` sje at gcc dot gnu dot org
2009-02-10 16:45 ` sje at gcc dot gnu dot org
2009-02-10 16:49 ` sje at cup dot hp dot com

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).