public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/35433] [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary operator
2008-03-03 20:24 [Bug c/35433] New: [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary operator reichelt at gcc dot gnu dot org
@ 2008-03-03 20:24 ` reichelt at gcc dot gnu dot org
2008-03-15 1:31 ` jsm28 at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-03 20:24 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35433
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/35433] New: [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary operator
@ 2008-03-03 20:24 reichelt at gcc dot gnu dot org
2008-03-03 20:24 ` [Bug c/35433] " reichelt at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-03 20:24 UTC (permalink / raw)
To: gcc-bugs
The following (IMHO valid) code snippet triggers an ICE since GCC 4.1.0:
================================
typedef int* X;
typedef int* Y;
X (*p)[][0];
Y (*q)[][0];
typeof(*(0 ? p : q)) x = { 0 };
================================
bug.c:7: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
The code compiled fine with GCC 2.95.3, crashed GCC 3.0.0, 3.0.1,
and was rejected by GCC 3.0.2 - 4.0.4.
--
Summary: [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary
operator
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, monitored
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35433
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/35433] [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary operator
2008-03-03 20:24 [Bug c/35433] New: [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary operator reichelt at gcc dot gnu dot org
2008-03-03 20:24 ` [Bug c/35433] " reichelt at gcc dot gnu dot org
@ 2008-03-15 1:31 ` jsm28 at gcc dot gnu dot org
2008-07-04 22:37 ` [Bug c/35433] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-03-15 1:31 UTC (permalink / raw)
To: gcc-bugs
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Priority|P3 |P2
Last reconfirmed|0000-00-00 00:00:00 |2008-03-15 01:30:20
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35433
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/35433] [4.2/4.3/4.4 regression] ICE with typeof and ternary operator
2008-03-03 20:24 [Bug c/35433] New: [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary operator reichelt at gcc dot gnu dot org
2008-03-03 20:24 ` [Bug c/35433] " reichelt at gcc dot gnu dot org
2008-03-15 1:31 ` jsm28 at gcc dot gnu dot org
@ 2008-07-04 22:37 ` jsm28 at gcc dot gnu dot org
2009-02-03 17:38 ` jsm28 at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 22:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jsm28 at gcc dot gnu dot org 2008-07-04 22:36 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.1/4.2/4.3/4.4 regression]|[4.2/4.3/4.4 regression] ICE
|ICE with typeof and ternary |with typeof and ternary
|operator |operator
Target Milestone|4.1.3 |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35433
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/35433] [4.2/4.3/4.4 regression] ICE with typeof and ternary operator
2008-03-03 20:24 [Bug c/35433] New: [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary operator reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-07-04 22:37 ` [Bug c/35433] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
@ 2009-02-03 17:38 ` jsm28 at gcc dot gnu dot org
2009-02-03 20:38 ` jsm28 at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-02-03 17:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jsm28 at gcc dot gnu dot org 2009-02-03 17:38 -------
Working on a patch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jsm28 at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2008-03-15 01:30:20 |2009-02-03 17:38:08
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35433
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/35433] [4.2/4.3/4.4 regression] ICE with typeof and ternary operator
2008-03-03 20:24 [Bug c/35433] New: [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary operator reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-02-03 17:38 ` jsm28 at gcc dot gnu dot org
@ 2009-02-03 20:38 ` jsm28 at gcc dot gnu dot org
2009-02-03 20:41 ` [Bug c/35433] [4.2/4.3 " jsm28 at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-02-03 20:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jsm28 at gcc dot gnu dot org 2009-02-03 20:38 -------
Subject: Bug 35433
Author: jsm28
Date: Tue Feb 3 20:38:12 2009
New Revision: 143906
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143906
Log:
PR c/35433
* c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
for composite type involving a zero-length array type.
testsuite:
* gcc.dg/init-bad-6.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/init-bad-6.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-typeck.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35433
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/35433] [4.2/4.3 regression] ICE with typeof and ternary operator
2008-03-03 20:24 [Bug c/35433] New: [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary operator reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-02-03 20:38 ` jsm28 at gcc dot gnu dot org
@ 2009-02-03 20:41 ` jsm28 at gcc dot gnu dot org
2009-02-04 13:08 ` jsm28 at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-02-03 20:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jsm28 at gcc dot gnu dot org 2009-02-03 20:41 -------
Fixed for 4.4; will fix for 4.3.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code |ice-on-invalid-code
Summary|[4.2/4.3/4.4 regression] ICE|[4.2/4.3 regression] ICE
|with typeof and ternary |with typeof and ternary
|operator |operator
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35433
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/35433] [4.2/4.3 regression] ICE with typeof and ternary operator
2008-03-03 20:24 [Bug c/35433] New: [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary operator reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2009-02-03 20:41 ` [Bug c/35433] [4.2/4.3 " jsm28 at gcc dot gnu dot org
@ 2009-02-04 13:08 ` jsm28 at gcc dot gnu dot org
2009-02-04 13:09 ` [Bug c/35433] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-31 15:21 ` jsm28 at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-02-04 13:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jsm28 at gcc dot gnu dot org 2009-02-04 13:07 -------
Subject: Bug 35433
Author: jsm28
Date: Wed Feb 4 13:07:43 2009
New Revision: 143922
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143922
Log:
PR c/35433
* c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
for composite type involving a zero-length array type.
testsuite:
* gcc.dg/init-bad-6.c: New test.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/init-bad-6.c
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/c-typeck.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35433
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/35433] [4.2 regression] ICE with typeof and ternary operator
2008-03-03 20:24 [Bug c/35433] New: [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary operator reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2009-02-04 13:08 ` jsm28 at gcc dot gnu dot org
@ 2009-02-04 13:09 ` jsm28 at gcc dot gnu dot org
2009-03-31 15:21 ` jsm28 at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-02-04 13:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jsm28 at gcc dot gnu dot org 2009-02-04 13:09 -------
Fixed for 4.3.4 and 4.4.0. Not planning to work on backport to 4.2 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|jsm28 at gcc dot gnu dot org|unassigned at gcc dot gnu
| |dot org
Status|ASSIGNED |NEW
Known to fail| |4.2.4 4.3.3
Known to work| |4.3.4 4.4.0
Summary|[4.2/4.3 regression] ICE |[4.2 regression] ICE with
|with typeof and ternary |typeof and ternary operator
|operator |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35433
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/35433] [4.2 regression] ICE with typeof and ternary operator
2008-03-03 20:24 [Bug c/35433] New: [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary operator reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2009-02-04 13:09 ` [Bug c/35433] [4.2 " jsm28 at gcc dot gnu dot org
@ 2009-03-31 15:21 ` jsm28 at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 15:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jsm28 at gcc dot gnu dot org 2009-03-31 15:21 -------
Closing 4.2 branch, fixed for 4.3.4 and 4.4.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to fail|4.2.4 4.3.3 |4.2.4 4.3.3 4.2.5
Resolution| |FIXED
Target Milestone|4.2.5 |4.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35433
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-03-31 15:21 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-03 20:24 [Bug c/35433] New: [4.1/4.2/4.3/4.4 regression] ICE with typeof and ternary operator reichelt at gcc dot gnu dot org
2008-03-03 20:24 ` [Bug c/35433] " reichelt at gcc dot gnu dot org
2008-03-15 1:31 ` jsm28 at gcc dot gnu dot org
2008-07-04 22:37 ` [Bug c/35433] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2009-02-03 17:38 ` jsm28 at gcc dot gnu dot org
2009-02-03 20:38 ` jsm28 at gcc dot gnu dot org
2009-02-03 20:41 ` [Bug c/35433] [4.2/4.3 " jsm28 at gcc dot gnu dot org
2009-02-04 13:08 ` jsm28 at gcc dot gnu dot org
2009-02-04 13:09 ` [Bug c/35433] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-31 15:21 ` jsm28 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).