public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33841] New: [4.2/4.3 regression] ICE with non-integral bit-field
@ 2007-10-20 22:00 reichelt at gcc dot gnu dot org
2007-10-20 22:00 ` [Bug c++/33841] " reichelt 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 @ 2007-10-20 22:00 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE since GCC 4.2.0:
===============================
template<int> struct A
{
struct {} : 2;
};
struct B : A<0> {};
===============================
bug.cc: In instantiation of 'A<0>':
bug.cc:6: instantiated from here
bug.cc:3: error: bit-field 'A<0>::<anonymous struct> A<0>::<anonymous>' with
non-integral type
bug.cc:6: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
The bug is related to PR33840.
--
Summary: [4.2/4.3 regression] ICE with non-integral bit-field
Product: gcc
Version: 4.3.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=33841
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/33841] [4.2/4.3 regression] ICE with non-integral bit-field
2007-10-20 22:00 [Bug c++/33841] New: [4.2/4.3 regression] ICE with non-integral bit-field reichelt at gcc dot gnu dot org
@ 2007-10-20 22:00 ` reichelt at gcc dot gnu dot org
2007-10-27 17:34 ` jakub at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-10-20 22:00 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.2.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33841
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/33841] [4.2/4.3 regression] ICE with non-integral bit-field
2007-10-20 22:00 [Bug c++/33841] New: [4.2/4.3 regression] ICE with non-integral bit-field reichelt at gcc dot gnu dot org
2007-10-20 22:00 ` [Bug c++/33841] " reichelt at gcc dot gnu dot org
@ 2007-10-27 17:34 ` jakub at gcc dot gnu dot org
2007-10-29 21:41 ` jakub at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-10-27 17:34 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2007-
| |10/msg01641.html
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-10-27 17:34:42
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33841
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/33841] [4.2/4.3 regression] ICE with non-integral bit-field
2007-10-20 22:00 [Bug c++/33841] New: [4.2/4.3 regression] ICE with non-integral bit-field reichelt at gcc dot gnu dot org
2007-10-20 22:00 ` [Bug c++/33841] " reichelt at gcc dot gnu dot org
2007-10-27 17:34 ` jakub at gcc dot gnu dot org
@ 2007-10-29 21:41 ` jakub at gcc dot gnu dot org
2007-10-29 21:44 ` [Bug c++/33841] [4.2 " jakub at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-10-29 21:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jakub at gcc dot gnu dot org 2007-10-29 21:41 -------
Subject: Bug 33841
Author: jakub
Date: Mon Oct 29 21:41:29 2007
New Revision: 129736
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129736
Log:
PR c++/33841
* class.c (check_bitfield_decl): Don't set field's type to
error_mark_node
for non-integral type bitfields. Return true if bitfield is correct,
false
error has been diagnosed.
(check_field_decls): If check_bitfield_decl returned false, call also
check_field_decl.
* g++.dg/other/bitfield3.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/other/bitfield3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33841
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/33841] [4.2 regression] ICE with non-integral bit-field
2007-10-20 22:00 [Bug c++/33841] New: [4.2/4.3 regression] ICE with non-integral bit-field reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-10-29 21:41 ` jakub at gcc dot gnu dot org
@ 2007-10-29 21:44 ` jakub at gcc dot gnu dot org
2008-02-01 17:00 ` jsm28 at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-10-29 21:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2007-10-29 21:43 -------
Fixed on the trunk so far.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.2/4.3 regression] ICE |[4.2 regression] ICE with
|with non-integral bit-field |non-integral bit-field
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33841
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/33841] [4.2 regression] ICE with non-integral bit-field
2007-10-20 22:00 [Bug c++/33841] New: [4.2/4.3 regression] ICE with non-integral bit-field reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-10-29 21:44 ` [Bug c++/33841] [4.2 " jakub at gcc dot gnu dot org
@ 2008-02-01 17:00 ` jsm28 at gcc dot gnu dot org
2008-03-16 17:35 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-02-01 17:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jsm28 at gcc dot gnu dot org 2008-02-01 16:54 -------
4.2.3 is being released now, changing milestones of open bugs to 4.2.4.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.3 |4.2.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33841
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/33841] [4.2 regression] ICE with non-integral bit-field
2007-10-20 22:00 [Bug c++/33841] New: [4.2/4.3 regression] ICE with non-integral bit-field reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2008-02-01 17:00 ` jsm28 at gcc dot gnu dot org
@ 2008-03-16 17:35 ` rguenth at gcc dot gnu dot org
2008-05-19 20:30 ` jsm28 at gcc dot gnu dot org
2009-03-31 0:33 ` jsm28 at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-03-16 17:35 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.2.3
Known to work| |4.3.0
Priority|P3 |P5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33841
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/33841] [4.2 regression] ICE with non-integral bit-field
2007-10-20 22:00 [Bug c++/33841] New: [4.2/4.3 regression] ICE with non-integral bit-field reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2008-03-16 17:35 ` rguenth at gcc dot gnu dot org
@ 2008-05-19 20:30 ` jsm28 at gcc dot gnu dot org
2009-03-31 0:33 ` jsm28 at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-05-19 20:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jsm28 at gcc dot gnu dot org 2008-05-19 20:23 -------
4.2.4 is being released, changing milestones to 4.2.5.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.4 |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33841
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/33841] [4.2 regression] ICE with non-integral bit-field
2007-10-20 22:00 [Bug c++/33841] New: [4.2/4.3 regression] ICE with non-integral bit-field reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2008-05-19 20:30 ` jsm28 at gcc dot gnu dot org
@ 2009-03-31 0:33 ` jsm28 at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 0:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jsm28 at gcc dot gnu dot org 2009-03-31 00:33 -------
Closing 4.2 branch, fixed in 4.3.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to fail|4.2.3 |4.2.3 4.2.5
Resolution| |FIXED
Target Milestone|4.2.5 |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33841
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-03-31 0:33 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-20 22:00 [Bug c++/33841] New: [4.2/4.3 regression] ICE with non-integral bit-field reichelt at gcc dot gnu dot org
2007-10-20 22:00 ` [Bug c++/33841] " reichelt at gcc dot gnu dot org
2007-10-27 17:34 ` jakub at gcc dot gnu dot org
2007-10-29 21:41 ` jakub at gcc dot gnu dot org
2007-10-29 21:44 ` [Bug c++/33841] [4.2 " jakub at gcc dot gnu dot org
2008-02-01 17:00 ` jsm28 at gcc dot gnu dot org
2008-03-16 17:35 ` rguenth at gcc dot gnu dot org
2008-05-19 20:30 ` jsm28 at gcc dot gnu dot org
2009-03-31 0:33 ` 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).