public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28053] New: [4.2 regression] ICE deriving from class with invalid bitfield
@ 2006-06-16 3:02 reichelt at gcc dot gnu dot org
2006-06-16 17:49 ` [Bug c++/28053] " pinskia at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-06-16 3:02 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet causes an ICE on mainline:
============================================
struct X {};
struct A
{
X x : 2;
};
struct B : A {};
============================================
bug.cc:5: error: bit-field 'X A::x' with non-integral type
bug.cc:8: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
This is a very recent regression (GCC 4.2.0 20060527 was not affected).
--
Summary: [4.2 regression] ICE deriving from class with invalid
bitfield
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, 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=28053
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28053] [4.2 regression] ICE deriving from class with invalid bitfield
2006-06-16 3:02 [Bug c++/28053] New: [4.2 regression] ICE deriving from class with invalid bitfield reichelt at gcc dot gnu dot org
@ 2006-06-16 17:49 ` pinskia at gcc dot gnu dot org
2006-07-17 2:42 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-16 17:49 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28053
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28053] [4.2 regression] ICE deriving from class with invalid bitfield
2006-06-16 3:02 [Bug c++/28053] New: [4.2 regression] ICE deriving from class with invalid bitfield reichelt at gcc dot gnu dot org
2006-06-16 17:49 ` [Bug c++/28053] " pinskia at gcc dot gnu dot org
@ 2006-07-17 2:42 ` mmitchel at gcc dot gnu dot org
2006-08-12 21:25 ` janis at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-17 2:42 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28053
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28053] [4.2 regression] ICE deriving from class with invalid bitfield
2006-06-16 3:02 [Bug c++/28053] New: [4.2 regression] ICE deriving from class with invalid bitfield reichelt at gcc dot gnu dot org
2006-06-16 17:49 ` [Bug c++/28053] " pinskia at gcc dot gnu dot org
2006-07-17 2:42 ` mmitchel at gcc dot gnu dot org
@ 2006-08-12 21:25 ` janis at gcc dot gnu dot org
2006-08-14 19:06 ` reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: janis at gcc dot gnu dot org @ 2006-08-12 21:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from janis at gcc dot gnu dot org 2006-08-12 21:25 -------
A regression hunt on powerpc-linux identified this patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=114245
r114245 | mmitchel | 2006-05-30 21:25:02 +0000 (Tue, 30 May 2006)
--
janis at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28053
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28053] [4.2 regression] ICE deriving from class with invalid bitfield
2006-06-16 3:02 [Bug c++/28053] New: [4.2 regression] ICE deriving from class with invalid bitfield reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-08-12 21:25 ` janis at gcc dot gnu dot org
@ 2006-08-14 19:06 ` reichelt at gcc dot gnu dot org
2006-10-18 14:48 ` lmillward at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-14 19:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from reichelt at gcc dot gnu dot org 2006-08-14 19:06 -------
Reproduced by Janis.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-08-14 19:06:00
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28053
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28053] [4.2 regression] ICE deriving from class with invalid bitfield
2006-06-16 3:02 [Bug c++/28053] New: [4.2 regression] ICE deriving from class with invalid bitfield reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-08-14 19:06 ` reichelt at gcc dot gnu dot org
@ 2006-10-18 14:48 ` lmillward at gcc dot gnu dot org
2006-10-18 14:50 ` patchapp at dberlin dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-10-18 14:48 UTC (permalink / raw)
To: gcc-bugs
--
lmillward at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |lmillward at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-08-14 19:06:00 |2006-10-18 14:48:20
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28053
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28053] [4.2 regression] ICE deriving from class with invalid bitfield
2006-06-16 3:02 [Bug c++/28053] New: [4.2 regression] ICE deriving from class with invalid bitfield reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-10-18 14:48 ` lmillward at gcc dot gnu dot org
@ 2006-10-18 14:50 ` patchapp at dberlin dot org
2006-10-20 20:14 ` lmillward at gcc dot gnu dot org
2006-10-20 20:14 ` lmillward at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: patchapp at dberlin dot org @ 2006-10-18 14:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from patchapp at dberlin dot org 2006-10-18 14:50 -------
Subject: Bug number PR c++/28053
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-10/msg00913.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28053
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28053] [4.2 regression] ICE deriving from class with invalid bitfield
2006-06-16 3:02 [Bug c++/28053] New: [4.2 regression] ICE deriving from class with invalid bitfield reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-10-18 14:50 ` patchapp at dberlin dot org
@ 2006-10-20 20:14 ` lmillward at gcc dot gnu dot org
2006-10-20 20:14 ` lmillward at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-10-20 20:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from lmillward at gcc dot gnu dot org 2006-10-20 20:14 -------
Fixed in 4.2.
--
lmillward at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28053
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/28053] [4.2 regression] ICE deriving from class with invalid bitfield
2006-06-16 3:02 [Bug c++/28053] New: [4.2 regression] ICE deriving from class with invalid bitfield reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-10-20 20:14 ` lmillward at gcc dot gnu dot org
@ 2006-10-20 20:14 ` lmillward at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-10-20 20:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from lmillward at gcc dot gnu dot org 2006-10-20 20:13 -------
Subject: Bug 28053
Author: lmillward
Date: Fri Oct 20 20:13:42 2006
New Revision: 117910
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117910
Log:
PR c++/28053
* decl2.c (grokbitfield): Detect invalid non-integral
types earlier when possible.
* g++.dg/parse/bitfield1.C: Adjust error markers.
* g++.dg/parse/bitfield2.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/parse/bitfield2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl2.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/parse/bitfield1.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28053
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-10-20 20:14 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-16 3:02 [Bug c++/28053] New: [4.2 regression] ICE deriving from class with invalid bitfield reichelt at gcc dot gnu dot org
2006-06-16 17:49 ` [Bug c++/28053] " pinskia at gcc dot gnu dot org
2006-07-17 2:42 ` mmitchel at gcc dot gnu dot org
2006-08-12 21:25 ` janis at gcc dot gnu dot org
2006-08-14 19:06 ` reichelt at gcc dot gnu dot org
2006-10-18 14:48 ` lmillward at gcc dot gnu dot org
2006-10-18 14:50 ` patchapp at dberlin dot org
2006-10-20 20:14 ` lmillward at gcc dot gnu dot org
2006-10-20 20:14 ` lmillward 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).