public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/25776] New: ICE in cgraph after error
@ 2006-01-12 21:04 pinskia at gcc dot gnu dot org
2006-01-12 21:06 ` [Bug middle-end/25776] [4.2 Regression] " pinskia at gcc dot gnu dot org
` (15 more replies)
0 siblings, 16 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-12 21:04 UTC (permalink / raw)
To: gcc-bugs
C++ testcase:
namespace std {
template<typename _Tp> struct allocator {
};
}
namespace __gnu_cxx {
}
namespace std {
template<typename _CharT, typename _Traits, typename _Alloc> class
basic_string {
};
template<typename _Tp, typename _Alloc> struct _Vector_base {
struct _Vector_impl : public _Tp_alloc_type {
};
~_Vector_base() {
}
};
template<typename _Tp, typename _Alloc = std::allocator<_Tp> > class
vector : protected _Vector_base<_Tp, _Alloc> {
};
struct surface_restorer {
};
namespace events {
struct handler {
virtual ~handler();
};
struct widget : public events::handler {
std::vector< surface_restorer > restorer_;
};
struct scrollbar : public widget {
};
scrollbar a;
--
Summary: ICE in cgraph after error
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
@ 2006-01-12 21:06 ` pinskia at gcc dot gnu dot org
2006-01-16 6:24 ` [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above pinskia at gcc dot gnu dot org
` (14 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-12 21:06 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
Summary|ICE in cgraph after error |[4.2 Regression] ICE in
| |cgraph after error
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
2006-01-12 21:06 ` [Bug middle-end/25776] [4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-01-16 6:24 ` pinskia at gcc dot gnu dot org
2006-01-19 15:57 ` reichelt at gcc dot gnu dot org
` (13 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-16 6:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-01-16 06:24 -------
The ICE is:
t.cc:33: error: inlined_to pointer is set but no predecesors found
virtual std::events::scrollbar::~scrollbar()/33: (inline copy in void
__static_initialization_and_destruction_0(int, int)/11)
availability:available(9) 35 insns (89 after inlining) tree externally_visible
finalized inlinable
called by:
calls: std::events::widget::~widget()/4 (inlined) void operator
delete(void*)/26
t.cc:33: internal compiler error: verify_cgraph_node failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
It seems wrong that we are running the inliner when we have errors.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.2 Regression] ICE in |[4.2 Regression] ICE in
|cgraph after error |cgraph after error at -O1
| |and above
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
2006-01-12 21:06 ` [Bug middle-end/25776] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-01-16 6:24 ` [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above pinskia at gcc dot gnu dot org
@ 2006-01-19 15:57 ` reichelt at gcc dot gnu dot org
2006-02-14 12:49 ` pinskia at gcc dot gnu dot org
` (12 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-01-19 15:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from reichelt at gcc dot gnu dot org 2006-01-19 15:57 -------
Confirmed. Reduced testcase:
=======================
struct A
{
ERROR;
~A();
};
struct B
{
virtual ~B();
};
struct C : B, A {};
struct D : C {};
D d;
=======================
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |monitored
Last reconfirmed|0000-00-00 00:00:00 |2006-01-19 15:57:30
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-01-19 15:57 ` reichelt at gcc dot gnu dot org
@ 2006-02-14 12:49 ` pinskia at gcc dot gnu dot org
2006-04-02 5:36 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-14 12:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-02-14 12:49 -------
*** Bug 26281 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tsarkov at cs dot man dot ac
| |dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-02-14 12:49 ` pinskia at gcc dot gnu dot org
@ 2006-04-02 5:36 ` pinskia at gcc dot gnu dot org
2006-04-19 3:02 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-02 5:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-04-02 05:36 -------
*** Bug 26979 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rjpeters at klab dot caltech
| |dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-04-02 5:36 ` pinskia at gcc dot gnu dot org
@ 2006-04-19 3:02 ` pinskia at gcc dot gnu dot org
2006-04-19 3:03 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-19 3:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-04-19 03:02 -------
*** Bug 27207 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tbm at cyrius dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-04-19 3:02 ` pinskia at gcc dot gnu dot org
@ 2006-04-19 3:03 ` pinskia at gcc dot gnu dot org
2006-04-24 0:38 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-19 3:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2006-04-19 03:03 -------
This also can ICE with valid code with -Werror and a warning was emitted, PR
27207 was that case.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-04-19 3:03 ` pinskia at gcc dot gnu dot org
@ 2006-04-24 0:38 ` pinskia at gcc dot gnu dot org
2006-04-25 17:00 ` aldot at gcc dot gnu dot org
` (7 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-24 0:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pinskia at gcc dot gnu dot org 2006-04-24 00:38 -------
here is the fix I came up with:
Index: cgraphunit.c
===================================================================
--- cgraphunit.c (revision 113199)
+++ cgraphunit.c (working copy)
@@ -1404,7 +1404,8 @@ cgraph_optimize (void)
fprintf (cgraph_dump_file, "Marked ");
dump_cgraph (cgraph_dump_file);
}
- ipa_passes ();
+ if (errorcount == 0 && sorrycount == 0)
+ ipa_passes ();
/* This pass remove bodies of extern inline functions we never inlined.
Do this later so other IPA passes see what is really going on. */
cgraph_remove_unreachable_nodes (false, dump_file);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
` (7 preceding siblings ...)
2006-04-24 0:38 ` pinskia at gcc dot gnu dot org
@ 2006-04-25 17:00 ` aldot at gcc dot gnu dot org
2006-04-30 13:27 ` hubicka at gcc dot gnu dot org
` (6 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: aldot at gcc dot gnu dot org @ 2006-04-25 17:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from aldot at gcc dot gnu dot org 2006-04-25 17:00 -------
Created an attachment (id=11334)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11334&action=view)
fix typo in errormessage in verify_cgraph_node()
Just as a sidenote.. There is a typo in the error message in comment #1. The
attached patch fixes this on the 4.1 branch and on trunk.
Please apply, TIA.
2006-04-25 Bernhard Fischer <aldot@gcc.gnu.org>
* cgraphunit.c (verify_cgraph_node): Fix typo
s/predecesors/predecessors/
in error message.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
` (8 preceding siblings ...)
2006-04-25 17:00 ` aldot at gcc dot gnu dot org
@ 2006-04-30 13:27 ` hubicka at gcc dot gnu dot org
2006-05-05 8:11 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2006-04-30 13:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from hubicka at gcc dot gnu dot org 2006-04-30 13:27 -------
Both patches (comment #7 and comment #8) are OK assuming they pass testing
(that is rather obvious).
Thanks,
Honza
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
` (9 preceding siblings ...)
2006-04-30 13:27 ` hubicka at gcc dot gnu dot org
@ 2006-05-05 8:11 ` pinskia at gcc dot gnu dot org
2006-05-18 9:34 ` tbm at cyrius dot com
` (4 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-05 8:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from pinskia at gcc dot gnu dot org 2006-05-05 08:11 -------
Mine.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
` (10 preceding siblings ...)
2006-05-05 8:11 ` pinskia at gcc dot gnu dot org
@ 2006-05-18 9:34 ` tbm at cyrius dot com
2006-05-20 20:20 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: tbm at cyrius dot com @ 2006-05-18 9:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from tbm at cyrius dot com 2006-05-18 09:34 -------
(In reply to comment #10)
> Mine.
Did you resolve your copyright problems?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
` (11 preceding siblings ...)
2006-05-18 9:34 ` tbm at cyrius dot com
@ 2006-05-20 20:20 ` pinskia at gcc dot gnu dot org
2006-05-20 22:35 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-20 20:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from pinskia at gcc dot gnu dot org 2006-05-20 20:20 -------
(In reply to comment #11)
> Did you resolve your copyright problems?
No but this patch is small enough not to need a copyright assignment so I am
going to commit it now.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
` (13 preceding siblings ...)
2006-05-20 22:35 ` pinskia at gcc dot gnu dot org
@ 2006-05-20 22:35 ` pinskia at gcc dot gnu dot org
2006-05-21 13:10 ` aldot at gcc dot gnu dot org
15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-20 22:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from pinskia at gcc dot gnu dot org 2006-05-20 22:35 -------
Subject: Bug 25776
Author: pinskia
Date: Sat May 20 22:35:02 2006
New Revision: 113941
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113941
Log:
2006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/25776
* cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
or sorry count is non zero.
2006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/25776
* g++.dg/other/error11.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/other/error11.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
` (12 preceding siblings ...)
2006-05-20 20:20 ` pinskia at gcc dot gnu dot org
@ 2006-05-20 22:35 ` pinskia at gcc dot gnu dot org
2006-05-20 22:35 ` pinskia at gcc dot gnu dot org
2006-05-21 13:10 ` aldot at gcc dot gnu dot org
15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-20 22:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from pinskia at gcc dot gnu dot org 2006-05-20 22:35 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
` (14 preceding siblings ...)
2006-05-20 22:35 ` pinskia at gcc dot gnu dot org
@ 2006-05-21 13:10 ` aldot at gcc dot gnu dot org
15 siblings, 0 replies; 17+ messages in thread
From: aldot at gcc dot gnu dot org @ 2006-05-21 13:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from aldot at gcc dot gnu dot org 2006-05-21 13:10 -------
Subject: Bug 25776
Author: aldot
Date: Sun May 21 13:10:37 2006
New Revision: 113952
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113952
Log:
ACKed by Jan Hubicka in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776#c9
PR middle-end/25776
* cgraphunit.c (verify_cgraph_node): Typo in error message.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2006-05-21 13:10 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-12 21:04 [Bug middle-end/25776] New: ICE in cgraph after error pinskia at gcc dot gnu dot org
2006-01-12 21:06 ` [Bug middle-end/25776] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-01-16 6:24 ` [Bug middle-end/25776] [4.2 Regression] ICE in cgraph after error at -O1 and above pinskia at gcc dot gnu dot org
2006-01-19 15:57 ` reichelt at gcc dot gnu dot org
2006-02-14 12:49 ` pinskia at gcc dot gnu dot org
2006-04-02 5:36 ` pinskia at gcc dot gnu dot org
2006-04-19 3:02 ` pinskia at gcc dot gnu dot org
2006-04-19 3:03 ` pinskia at gcc dot gnu dot org
2006-04-24 0:38 ` pinskia at gcc dot gnu dot org
2006-04-25 17:00 ` aldot at gcc dot gnu dot org
2006-04-30 13:27 ` hubicka at gcc dot gnu dot org
2006-05-05 8:11 ` pinskia at gcc dot gnu dot org
2006-05-18 9:34 ` tbm at cyrius dot com
2006-05-20 20:20 ` pinskia at gcc dot gnu dot org
2006-05-20 22:35 ` pinskia at gcc dot gnu dot org
2006-05-20 22:35 ` pinskia at gcc dot gnu dot org
2006-05-21 13:10 ` aldot 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).