public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28523] New: Throw of a derived class casted to its base class using a C-style cast
@ 2006-07-28 10:29 m dot faustino at gmail dot com
2006-07-28 11:12 ` [Bug c++/28523] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: m dot faustino at gmail dot com @ 2006-07-28 10:29 UTC (permalink / raw)
To: gcc-bugs
The compiler generates the error:
a.cpp: In function ‘int main()’:
a.cpp:6: internal compiler error: in stabilize_call, at cp/tree.c:2248
For this code:
class A {};
class B : public A {};
int main()
{
throw (A) B();
return 0;
}
Info:
gcc version 4.1.1
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1.1-src/configure
Thread model: posix
Command line:
g++ -Wall -ansi -pedantic a.cpp
--
Summary: Throw of a derived class casted to its base class using
a C-style cast
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: m dot faustino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28523
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28523] [4.0/4.1/4.2 Regression] Throw of a derived class casted to its base class using a C-style cast
2006-07-28 10:29 [Bug c++/28523] New: Throw of a derived class casted to its base class using a C-style cast m dot faustino at gmail dot com
@ 2006-07-28 11:12 ` pinskia at gcc dot gnu dot org
2006-07-28 11:12 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-28 11:12 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Known to fail| |3.4.0 4.0.0 4.1.0 4.2.0
Known to work| |3.3.3
Summary|Throw of a derived class |[4.0/4.1/4.2 Regression]
|casted to its base class |Throw of a derived class
|using a C-style cast |casted to its base class
| |using a C-style cast
Target Milestone|--- |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28523
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28523] [4.0/4.1/4.2 Regression] Throw of a derived class casted to its base class using a C-style cast
2006-07-28 10:29 [Bug c++/28523] New: Throw of a derived class casted to its base class using a C-style cast m dot faustino at gmail dot com
2006-07-28 11:12 ` [Bug c++/28523] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-07-28 11:12 ` pinskia at gcc dot gnu dot org
2006-07-31 23:38 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-28 11:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-28 11:12 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-07-28 11:12:45
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28523
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28523] [4.0/4.1/4.2 Regression] Throw of a derived class casted to its base class using a C-style cast
2006-07-28 10:29 [Bug c++/28523] New: Throw of a derived class casted to its base class using a C-style cast m dot faustino at gmail dot com
2006-07-28 11:12 ` [Bug c++/28523] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-07-28 11:12 ` pinskia at gcc dot gnu dot org
@ 2006-07-31 23:38 ` mmitchel at gcc dot gnu dot org
2006-08-01 0:53 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-31 23:38 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28523
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28523] [4.0/4.1/4.2 Regression] Throw of a derived class casted to its base class using a C-style cast
2006-07-28 10:29 [Bug c++/28523] New: Throw of a derived class casted to its base class using a C-style cast m dot faustino at gmail dot com
` (2 preceding siblings ...)
2006-07-31 23:38 ` mmitchel at gcc dot gnu dot org
@ 2006-08-01 0:53 ` mmitchel at gcc dot gnu dot org
2006-08-01 20:05 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-08-01 0:53 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28523
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28523] [4.0/4.1/4.2 Regression] Throw of a derived class casted to its base class using a C-style cast
2006-07-28 10:29 [Bug c++/28523] New: Throw of a derived class casted to its base class using a C-style cast m dot faustino at gmail dot com
` (3 preceding siblings ...)
2006-08-01 0:53 ` mmitchel at gcc dot gnu dot org
@ 2006-08-01 20:05 ` mmitchel at gcc dot gnu dot org
2006-08-01 20:06 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-08-01 20:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from mmitchel at gcc dot gnu dot org 2006-08-01 20:05 -------
Subject: Bug 28523
Author: mmitchel
Date: Tue Aug 1 20:04:57 2006
New Revision: 115862
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115862
Log:
PR c++/28523
* tree.c (stabilize_expr): Tweak documentation. Add assertion.
(stabilize_call): Tweak documentation.
(stabilize_init): Only call stabilize_call for calls.
PR c++/28523
* g++.dg/eh/cast1.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/eh/cast1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/tree.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28523
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28523] [4.0/4.1/4.2 Regression] Throw of a derived class casted to its base class using a C-style cast
2006-07-28 10:29 [Bug c++/28523] New: Throw of a derived class casted to its base class using a C-style cast m dot faustino at gmail dot com
` (4 preceding siblings ...)
2006-08-01 20:05 ` mmitchel at gcc dot gnu dot org
@ 2006-08-01 20:06 ` mmitchel at gcc dot gnu dot org
2006-08-01 21:33 ` [Bug c++/28523] [4.0 " mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-08-01 20:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from mmitchel at gcc dot gnu dot org 2006-08-01 20:05 -------
Subject: Bug 28523
Author: mmitchel
Date: Tue Aug 1 20:05:49 2006
New Revision: 115863
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115863
Log:
PR c++/28523
* tree.c (stabilize_expr): Tweak documentation. Add assertion.
(stabilize_call): Tweak documentation.
(stabilize_init): Only call stabilize_call for calls.
PR c++/28523
* g++.dg/eh/cast1.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/eh/cast1.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/tree.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28523
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28523] [4.0 Regression] Throw of a derived class casted to its base class using a C-style cast
2006-07-28 10:29 [Bug c++/28523] New: Throw of a derived class casted to its base class using a C-style cast m dot faustino at gmail dot com
` (5 preceding siblings ...)
2006-08-01 20:06 ` mmitchel at gcc dot gnu dot org
@ 2006-08-01 21:33 ` mmitchel at gcc dot gnu dot org
2006-08-02 11:33 ` reichelt at gcc dot gnu dot org
2007-02-03 18:39 ` gdr at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-08-01 21:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mmitchel at gcc dot gnu dot org 2006-08-01 21:33 -------
Fixed in 4.1.2.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|mark at codesourcery dot com|unassigned at gcc dot gnu
| |dot org
Status|ASSIGNED |NEW
Summary|[4.0/4.1/4.2 Regression] |[4.0 Regression] Throw of a
|Throw of a derived class |derived class casted to its
|casted to its base class |base class using a C-style
|using a C-style cast |cast
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28523
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28523] [4.0 Regression] Throw of a derived class casted to its base class using a C-style cast
2006-07-28 10:29 [Bug c++/28523] New: Throw of a derived class casted to its base class using a C-style cast m dot faustino at gmail dot com
` (6 preceding siblings ...)
2006-08-01 21:33 ` [Bug c++/28523] [4.0 " mmitchel at gcc dot gnu dot org
@ 2006-08-02 11:33 ` reichelt at gcc dot gnu dot org
2007-02-03 18:39 ` gdr at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-02 11:33 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |ice-on-valid-code, monitored
Target Milestone|4.1.2 |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28523
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28523] [4.0 Regression] Throw of a derived class casted to its base class using a C-style cast
2006-07-28 10:29 [Bug c++/28523] New: Throw of a derived class casted to its base class using a C-style cast m dot faustino at gmail dot com
` (7 preceding siblings ...)
2006-08-02 11:33 ` reichelt at gcc dot gnu dot org
@ 2007-02-03 18:39 ` gdr at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 18:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from gdr at gcc dot gnu dot org 2007-02-03 18:39 -------
Fixed in GCC-4.1.2
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.4 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28523
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-02-03 18:39 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-28 10:29 [Bug c++/28523] New: Throw of a derived class casted to its base class using a C-style cast m dot faustino at gmail dot com
2006-07-28 11:12 ` [Bug c++/28523] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-07-28 11:12 ` pinskia at gcc dot gnu dot org
2006-07-31 23:38 ` mmitchel at gcc dot gnu dot org
2006-08-01 0:53 ` mmitchel at gcc dot gnu dot org
2006-08-01 20:05 ` mmitchel at gcc dot gnu dot org
2006-08-01 20:06 ` mmitchel at gcc dot gnu dot org
2006-08-01 21:33 ` [Bug c++/28523] [4.0 " mmitchel at gcc dot gnu dot org
2006-08-02 11:33 ` reichelt at gcc dot gnu dot org
2007-02-03 18:39 ` gdr 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).