public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33460] New: [4.1/4.2/4.3 regression] ICE with static member in anonymous union
@ 2007-09-17 21:59 reichelt at gcc dot gnu dot org
2007-09-17 22:00 ` [Bug c++/33460] " reichelt at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-09-17 21:59 UTC (permalink / raw)
To: gcc-bugs
The following invalid testcase triggers an ICE since GCC 3.0:
===================================
struct A
{
struct
{
struct { static int i; };
void foo() { i; }
};
};
===================================
bug.cc:5: error: 'int A::<anonymous struct>::<anonymous struct>::i' invalid; an
anonymous struct can only have non-static data members
bug.cc:4: error: an anonymous union cannot have function members
bug.cc: In member function 'void A::<anonymous struct>::foo()':
bug.cc:6: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
This is similar to PR 30302, but a little more complex.
--
Summary: [4.1/4.2/4.3 regression] ICE with static member in
anonymous union
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=33460
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/33460] [4.1/4.2/4.3 regression] ICE with static member in anonymous union
2007-09-17 21:59 [Bug c++/33460] New: [4.1/4.2/4.3 regression] ICE with static member in anonymous union reichelt at gcc dot gnu dot org
@ 2007-09-17 22:00 ` reichelt at gcc dot gnu dot org
2007-09-18 18:33 ` pcarlini at suse dot de
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-09-17 22:00 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=33460
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/33460] [4.1/4.2/4.3 regression] ICE with static member in anonymous union
2007-09-17 21:59 [Bug c++/33460] New: [4.1/4.2/4.3 regression] ICE with static member in anonymous union reichelt at gcc dot gnu dot org
2007-09-17 22:00 ` [Bug c++/33460] " reichelt at gcc dot gnu dot org
@ 2007-09-18 18:33 ` pcarlini at suse dot de
2007-09-20 23:05 ` paolo at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pcarlini at suse dot de @ 2007-09-18 18:33 UTC (permalink / raw)
To: gcc-bugs
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-09-18 18:33:39
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33460
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/33460] [4.1/4.2/4.3 regression] ICE with static member in anonymous union
2007-09-17 21:59 [Bug c++/33460] New: [4.1/4.2/4.3 regression] ICE with static member in anonymous union reichelt at gcc dot gnu dot org
2007-09-17 22:00 ` [Bug c++/33460] " reichelt at gcc dot gnu dot org
2007-09-18 18:33 ` pcarlini at suse dot de
@ 2007-09-20 23:05 ` paolo at gcc dot gnu dot org
2007-09-20 23:08 ` [Bug c++/33460] [4.1/4.2 " pcarlini at suse dot de
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-09-20 23:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from paolo at gcc dot gnu dot org 2007-09-20 23:05 -------
Subject: Bug 33460
Author: paolo
Date: Thu Sep 20 23:05:38 2007
New Revision: 128637
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128637
Log:
cp/
2007-09-20 Paolo Carlini <pcarlini@suse.de>
PR c++/33460
* semantics.c (finish_id_expression): Use consistently
context_for_name_lookup.
* decl.c (fixup_anonymous_aggr): Fix error message for
anonymous struct (vs union).
testsuite/
2007-09-20 Paolo Carlini <pcarlini@suse.de>
PR c++/33460
* g++.dg/ext/anon-struct6.C: New.
Added:
trunk/gcc/testsuite/g++.dg/ext/anon-struct6.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33460
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/33460] [4.1/4.2 regression] ICE with static member in anonymous union
2007-09-17 21:59 [Bug c++/33460] New: [4.1/4.2/4.3 regression] ICE with static member in anonymous union reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-09-20 23:05 ` paolo at gcc dot gnu dot org
@ 2007-09-20 23:08 ` pcarlini at suse dot de
2007-09-28 4:05 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pcarlini at suse dot de @ 2007-09-20 23:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pcarlini at suse dot de 2007-09-20 23:08 -------
Fixed for mainline.
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|pcarlini at suse dot de |unassigned at gcc dot gnu
| |dot org
Status|ASSIGNED |NEW
Summary|[4.1/4.2/4.3 regression] ICE|[4.1/4.2 regression] ICE
|with static member in |with static member in
|anonymous union |anonymous union
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33460
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/33460] [4.1/4.2 regression] ICE with static member in anonymous union
2007-09-17 21:59 [Bug c++/33460] New: [4.1/4.2/4.3 regression] ICE with static member in anonymous union reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-09-20 23:08 ` [Bug c++/33460] [4.1/4.2 " pcarlini at suse dot de
@ 2007-09-28 4:05 ` mmitchel at gcc dot gnu dot org
2008-07-04 22:17 ` [Bug c++/33460] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-30 22:19 ` jsm28 at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-09-28 4:05 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=33460
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/33460] [4.2 regression] ICE with static member in anonymous union
2007-09-17 21:59 [Bug c++/33460] New: [4.1/4.2/4.3 regression] ICE with static member in anonymous union reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2007-09-28 4:05 ` mmitchel at gcc dot gnu dot org
@ 2008-07-04 22:17 ` jsm28 at gcc dot gnu dot org
2009-03-30 22:19 ` jsm28 at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 22:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jsm28 at gcc dot gnu dot org 2008-07-04 22:16 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.1/4.2 regression] ICE |[4.2 regression] ICE with
|with static member in |static member in anonymous
|anonymous union |union
Target Milestone|4.1.3 |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33460
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/33460] [4.2 regression] ICE with static member in anonymous union
2007-09-17 21:59 [Bug c++/33460] New: [4.1/4.2/4.3 regression] ICE with static member in anonymous union reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2008-07-04 22:17 ` [Bug c++/33460] [4.2 " jsm28 at gcc dot gnu dot org
@ 2009-03-30 22:19 ` jsm28 at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-30 22:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jsm28 at gcc dot gnu dot org 2009-03-30 22:18 -------
Closing 4.2 branch, fixed in 4.3.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to fail| |4.2.5
Known to work| |4.3.0
Resolution| |FIXED
Target Milestone|4.2.5 |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33460
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-03-30 22:19 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-17 21:59 [Bug c++/33460] New: [4.1/4.2/4.3 regression] ICE with static member in anonymous union reichelt at gcc dot gnu dot org
2007-09-17 22:00 ` [Bug c++/33460] " reichelt at gcc dot gnu dot org
2007-09-18 18:33 ` pcarlini at suse dot de
2007-09-20 23:05 ` paolo at gcc dot gnu dot org
2007-09-20 23:08 ` [Bug c++/33460] [4.1/4.2 " pcarlini at suse dot de
2007-09-28 4:05 ` mmitchel at gcc dot gnu dot org
2008-07-04 22:17 ` [Bug c++/33460] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-30 22:19 ` 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).