public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35316] New: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields
@ 2008-02-23 17:52 reichelt at gcc dot gnu dot org
2008-02-23 17:52 ` [Bug c++/35316] " 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-02-23 17:52 UTC (permalink / raw)
To: gcc-bugs
The following valid code snippet triggers an ICE since GCC 4.2.0:
==========================
template<int> struct A
{
int i : 2;
void foo()
{
typeof(i) j;
}
};
==========================
bug.cc: In member function 'void A<<anonymous> >::foo()':
bug.cc:7: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
Also happens with __decltype instead of typeof (on mainline and 4.3 branch).
--
Summary: [4.2/4.3/4.4 regression] ICE with typeof/decltype and
bit-fields
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=35316
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35316] [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields
2008-02-23 17:52 [Bug c++/35316] New: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields reichelt at gcc dot gnu dot org
@ 2008-02-23 17:52 ` reichelt at gcc dot gnu dot org
2008-03-03 16:23 ` rguenth 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-02-23 17:52 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.2.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35316
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35316] [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields
2008-02-23 17:52 [Bug c++/35316] New: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields reichelt at gcc dot gnu dot org
2008-02-23 17:52 ` [Bug c++/35316] " reichelt at gcc dot gnu dot org
@ 2008-03-03 16:23 ` rguenth at gcc dot gnu dot org
2008-04-22 18:38 ` jason at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-03-03 16:23 UTC (permalink / raw)
To: gcc-bugs
--
rguenth 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-03 16:23:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35316
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35316] [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields
2008-02-23 17:52 [Bug c++/35316] New: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields reichelt at gcc dot gnu dot org
2008-02-23 17:52 ` [Bug c++/35316] " reichelt at gcc dot gnu dot org
2008-03-03 16:23 ` rguenth at gcc dot gnu dot org
@ 2008-04-22 18:38 ` jason at gcc dot gnu dot org
2008-04-22 23:14 ` jason at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-04-22 18:38 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2008-03-03 16:23:09 |2008-04-22 18:38:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35316
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35316] [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields
2008-02-23 17:52 [Bug c++/35316] New: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-04-22 18:38 ` jason at gcc dot gnu dot org
@ 2008-04-22 23:14 ` jason at gcc dot gnu dot org
2008-04-23 1:47 ` jason at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-04-22 23:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jason at gcc dot gnu dot org 2008-04-22 23:14 -------
Subject: Bug 35316
Author: jason
Date: Tue Apr 22 23:13:19 2008
New Revision: 134571
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134571
Log:
PR c++/35316
* semantics.c (finish_decltype_type): Check DECL_BIT_FIELD_TYPE
to see if DECL_BIT_FIELD_TYPE should be used, not some other flag.
* typeck.c (is_bitfield_expr_with_lowered_type): Likewise.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/decltype11.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35316
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35316] [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields
2008-02-23 17:52 [Bug c++/35316] New: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2008-04-22 23:14 ` jason at gcc dot gnu dot org
@ 2008-04-23 1:47 ` jason at gcc dot gnu dot org
2008-04-26 19:58 ` [Bug c++/35316] [4.2 " reichelt at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-04-23 1:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jason at gcc dot gnu dot org 2008-04-23 01:46 -------
Subject: Bug 35316
Author: jason
Date: Wed Apr 23 01:45:30 2008
New Revision: 134578
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134578
Log:
PR c++/35316
* semantics.c (finish_decltype_type): Check DECL_BIT_FIELD_TYPE
to see if DECL_BIT_FIELD_TYPE should be used, not some other flag.
* typeck.c (is_bitfield_expr_with_lowered_type): Likewise.
Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/cpp0x/decltype11.C
- copied unchanged from r134571,
trunk/gcc/testsuite/g++.dg/cpp0x/decltype11.C
Modified:
branches/gcc-4_3-branch/gcc/cp/ChangeLog
branches/gcc-4_3-branch/gcc/cp/semantics.c
branches/gcc-4_3-branch/gcc/cp/typeck.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35316
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35316] [4.2 regression] ICE with typeof/decltype and bit-fields
2008-02-23 17:52 [Bug c++/35316] New: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2008-04-23 1:47 ` jason at gcc dot gnu dot org
@ 2008-04-26 19:58 ` reichelt at gcc dot gnu dot org
2008-05-19 20:33 ` jsm28 at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-04-26 19:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from reichelt at gcc dot gnu dot org 2008-04-26 19:57 -------
Fixed on mainline and 4.3 branch.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.2/4.3/4.4 regression] ICE|[4.2 regression] ICE with
|with typeof/decltype and |typeof/decltype and bit-
|bit-fields |fields
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35316
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35316] [4.2 regression] ICE with typeof/decltype and bit-fields
2008-02-23 17:52 [Bug c++/35316] New: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2008-04-26 19:58 ` [Bug c++/35316] [4.2 " reichelt at gcc dot gnu dot org
@ 2008-05-19 20:33 ` jsm28 at gcc dot gnu dot org
2008-12-02 17:22 ` jason at gcc dot gnu dot org
2009-04-29 15:38 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-05-19 20:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jsm28 at gcc dot gnu dot org 2008-05-19 20:25 -------
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=35316
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35316] [4.2 regression] ICE with typeof/decltype and bit-fields
2008-02-23 17:52 [Bug c++/35316] New: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2008-05-19 20:33 ` jsm28 at gcc dot gnu dot org
@ 2008-12-02 17:22 ` jason at gcc dot gnu dot org
2009-04-29 15:38 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-12-02 17:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jason at gcc dot gnu dot org 2008-12-02 17:09 -------
Fixed in 4.3.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35316
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/35316] [4.2 regression] ICE with typeof/decltype and bit-fields
2008-02-23 17:52 [Bug c++/35316] New: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2008-12-02 17:22 ` jason at gcc dot gnu dot org
@ 2009-04-29 15:38 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-29 15:38 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.5 |4.3.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35316
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-04-29 15:38 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-23 17:52 [Bug c++/35316] New: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields reichelt at gcc dot gnu dot org
2008-02-23 17:52 ` [Bug c++/35316] " reichelt at gcc dot gnu dot org
2008-03-03 16:23 ` rguenth at gcc dot gnu dot org
2008-04-22 18:38 ` jason at gcc dot gnu dot org
2008-04-22 23:14 ` jason at gcc dot gnu dot org
2008-04-23 1:47 ` jason at gcc dot gnu dot org
2008-04-26 19:58 ` [Bug c++/35316] [4.2 " reichelt at gcc dot gnu dot org
2008-05-19 20:33 ` jsm28 at gcc dot gnu dot org
2008-12-02 17:22 ` jason at gcc dot gnu dot org
2009-04-29 15:38 ` 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).