* [Bug c++/22604] "internal compiler error: Segmentation fault" with invalid nested classes
2005-07-22 3:38 [Bug c++/22604] New: "internal compiler error: Segmentation fault" with invalid nested classes flash at pobox dot com
@ 2005-07-22 3:53 ` flash at pobox dot com
2005-07-22 3:54 ` [Bug c++/22604] [4.0/4.1 Regression] "internal compiler error" after invalid covariant return pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: flash at pobox dot com @ 2005-07-22 3:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From flash at pobox dot com 2005-07-22 03:38 -------
Created an attachment (id=9327)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9327&action=view)
BBinder_segfault.ii
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/22604] [4.0/4.1 Regression] "internal compiler error" after invalid covariant return
2005-07-22 3:38 [Bug c++/22604] New: "internal compiler error: Segmentation fault" with invalid nested classes flash at pobox dot com
2005-07-22 3:53 ` [Bug c++/22604] " flash at pobox dot com
@ 2005-07-22 3:54 ` pinskia at gcc dot gnu dot org
2005-07-22 4:00 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-22 3:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-22 03:53 -------
Confirmed.
Here is the backtrace:
#0 0x080b94b6 in dfs_modify_vtables (binfo=0xb7d11840, data=0xb7cbe398) at /home/peshtigo/
pinskia/src/gnu/gcc/src/gcc/cp/class.c:2032
#1 0x08122b40 in dfs_walk_all (binfo=0xb7d11840, pre_fn=0x80b8e00 <dfs_modify_vtables>,
post_fn=0, data=0xb7cbe398)
at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/search.c:1528
#2 0x08123444 in dfs_walk_once (binfo=0xb7d11840, pre_fn=0x80b8e00 <dfs_modify_vtables>,
post_fn=0, data=0xb7cbe398)
at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/search.c:1651
#3 0x080c8247 in finish_struct_1 (t=0xb7cbe398) at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/
cp/class.c:2223
#4 0x080ca5e6 in finish_struct (t=0xb7cbe398, attributes=0xb7cbe398) at /home/peshtigo/pinskia/
src/gnu/gcc/src/gcc/cp/class.c:5107
#5 0x080e953a in cp_parser_type_specifier (parser=0xb7cbbe38, flags=Variable "flags" is not
available.
) at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:12642
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |error-recovery, ice-on-
| |invalid-code
Last reconfirmed|0000-00-00 00:00:00 |2005-07-22 03:53:06
date| |
Summary|"internal compiler error: |[4.0/4.1 Regression]
|Segmentation fault" with |"internal compiler error"
|invalid nested classes |after invalid covariant
| |return
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/22604] [4.0/4.1 Regression] "internal compiler error" after invalid covariant return
2005-07-22 3:38 [Bug c++/22604] New: "internal compiler error: Segmentation fault" with invalid nested classes flash at pobox dot com
2005-07-22 3:53 ` [Bug c++/22604] " flash at pobox dot com
2005-07-22 3:54 ` [Bug c++/22604] [4.0/4.1 Regression] "internal compiler error" after invalid covariant return pinskia at gcc dot gnu dot org
@ 2005-07-22 4:00 ` pinskia at gcc dot gnu dot org
2005-07-22 8:24 ` belyshev at depni dot sinp dot msu dot ru
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-22 4:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-22 03:58 -------
I should mention this started to happen after 20041124 but before 20050225.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/22604] [4.0/4.1 Regression] "internal compiler error" after invalid covariant return
2005-07-22 3:38 [Bug c++/22604] New: "internal compiler error: Segmentation fault" with invalid nested classes flash at pobox dot com
` (2 preceding siblings ...)
2005-07-22 4:00 ` pinskia at gcc dot gnu dot org
@ 2005-07-22 8:24 ` belyshev at depni dot sinp dot msu dot ru
2005-07-23 5:11 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2005-07-22 8:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at depni dot sinp dot msu dot ru 2005-07-22 08:08 -------
Introduced between "2005-02-14 00:20 UTC" and "2005-02-15 00:20 UTC"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/22604] [4.0/4.1 Regression] "internal compiler error" after invalid covariant return
2005-07-22 3:38 [Bug c++/22604] New: "internal compiler error: Segmentation fault" with invalid nested classes flash at pobox dot com
` (3 preceding siblings ...)
2005-07-22 8:24 ` belyshev at depni dot sinp dot msu dot ru
@ 2005-07-23 5:11 ` pinskia at gcc dot gnu dot org
2005-07-25 13:22 ` [Bug c++/22604] [4.0/4.1 Regression] ICE " reichelt at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-23 5:11 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/22604] [4.0/4.1 Regression] ICE after invalid covariant return
2005-07-22 3:38 [Bug c++/22604] New: "internal compiler error: Segmentation fault" with invalid nested classes flash at pobox dot com
` (4 preceding siblings ...)
2005-07-23 5:11 ` pinskia at gcc dot gnu dot org
@ 2005-07-25 13:22 ` reichelt at gcc dot gnu dot org
2005-07-28 3:27 ` flash at pobox dot com
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-07-25 13:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-07-25 13:11 -------
Here's an example that only contains one error:
==============================================
struct A;
struct B
{
virtual A* foo();
};
namespace N
{
struct A : B
{
virtual A* foo(); // should be ::A*
};
}
==============================================
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |monitored
Summary|[4.0/4.1 Regression] |[4.0/4.1 Regression] ICE
|"internal compiler error" |after invalid covariant
|after invalid covariant |return
|return |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/22604] [4.0/4.1 Regression] ICE after invalid covariant return
2005-07-22 3:38 [Bug c++/22604] New: "internal compiler error: Segmentation fault" with invalid nested classes flash at pobox dot com
` (5 preceding siblings ...)
2005-07-25 13:22 ` [Bug c++/22604] [4.0/4.1 Regression] ICE " reichelt at gcc dot gnu dot org
@ 2005-07-28 3:27 ` flash at pobox dot com
2005-07-28 4:35 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: flash at pobox dot com @ 2005-07-28 3:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From flash at pobox dot com 2005-07-28 03:15 -------
Here's another segfault, originally PalmSource bug 105158, but after Delta reduction it looked similar:
class nameOne : public nameTwo, public nameThree, public nameFour, public nameFive, public nameSix
{
void nameSeven(const nameEight &name, const nameNine & icon);
virtual void nameSeven(const nameEight& name, const nameTen &icon);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/22604] [4.0/4.1 Regression] ICE after invalid covariant return
2005-07-22 3:38 [Bug c++/22604] New: "internal compiler error: Segmentation fault" with invalid nested classes flash at pobox dot com
` (6 preceding siblings ...)
2005-07-28 3:27 ` flash at pobox dot com
@ 2005-07-28 4:35 ` pinskia at gcc dot gnu dot org
2005-08-05 15:28 ` reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-28 4:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-28 03:27 -------
(In reply to comment #6)
> Here's another segfault, originally PalmSource bug 105158, but after Delta reduction it looked
similar:
That is a different issue, please file as a seperate bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/22604] [4.0/4.1 Regression] ICE after invalid covariant return
2005-07-22 3:38 [Bug c++/22604] New: "internal compiler error: Segmentation fault" with invalid nested classes flash at pobox dot com
` (7 preceding siblings ...)
2005-07-28 4:35 ` pinskia at gcc dot gnu dot org
@ 2005-08-05 15:28 ` reichelt at gcc dot gnu dot org
2005-08-05 15:43 ` reichelt at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-05 15:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-08-05 15:28 -------
For the record: The bug from comment #6 is tracked in PR23118.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/22604] [4.0/4.1 Regression] ICE after invalid covariant return
2005-07-22 3:38 [Bug c++/22604] New: "internal compiler error: Segmentation fault" with invalid nested classes flash at pobox dot com
` (8 preceding siblings ...)
2005-08-05 15:28 ` reichelt at gcc dot gnu dot org
@ 2005-08-05 15:43 ` reichelt at gcc dot gnu dot org
2005-08-08 18:13 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-05 15:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-08-05 15:43 -------
Testing a patch.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |reichelt at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/22604] [4.0/4.1 Regression] ICE after invalid covariant return
2005-07-22 3:38 [Bug c++/22604] New: "internal compiler error: Segmentation fault" with invalid nested classes flash at pobox dot com
` (9 preceding siblings ...)
2005-08-05 15:43 ` reichelt at gcc dot gnu dot org
@ 2005-08-08 18:13 ` pinskia at gcc dot gnu dot org
2005-08-12 1:26 ` flash at pobox dot com
2005-09-27 16:25 ` mmitchel at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-08 18:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-08 18:13 -------
This worked with 20041211.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/22604] [4.0/4.1 Regression] ICE after invalid covariant return
2005-07-22 3:38 [Bug c++/22604] New: "internal compiler error: Segmentation fault" with invalid nested classes flash at pobox dot com
` (10 preceding siblings ...)
2005-08-08 18:13 ` pinskia at gcc dot gnu dot org
@ 2005-08-12 1:26 ` flash at pobox dot com
2005-09-27 16:25 ` mmitchel at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: flash at pobox dot com @ 2005-08-12 1:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From flash at pobox dot com 2005-08-12 01:26 -------
The patch looks good. A checking=yes build, with patches 20161-8277, 22508-2005-08-00326,
22600-9330, and 22604-2005-08-00334, rejected the file BBinder_segfault.ii without an ICE. (A
checking=all build is still building.) A run of 'make check' didn't report any unexpected errors.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/22604] [4.0/4.1 Regression] ICE after invalid covariant return
2005-07-22 3:38 [Bug c++/22604] New: "internal compiler error: Segmentation fault" with invalid nested classes flash at pobox dot com
` (11 preceding siblings ...)
2005-08-12 1:26 ` flash at pobox dot com
@ 2005-09-27 16:25 ` mmitchel at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:25 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.2 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
^ permalink raw reply [flat|nested] 14+ messages in thread