public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10033: [3.2 regression] optimization breaks polymorphic references w/ 'typeid' operator
@ 2003-03-12 14:24 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-03-12 14:24 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jfischer_5809, nobody
Old Synopsis: optimization breaks polymorphic references w/ 'typeid' operator
New Synopsis: [3.2 regression] optimization breaks polymorphic references w/ 'typeid' operator
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Mar 12 14:24:17 2003
State-Changed-Why:
Confirmed. Here's a smaller testcase:
---------------------
#include <cstdlib>
#include <typeinfo>
struct A {
virtual ~A() { }
};
struct B : public A { };
int main()
{
B bobj;
A& aref = bobj;
if (typeid(aref) != typeid(B))
abort();
return 0;
}
--------------------------------
It executes just fine with 3.0, 3.3 and 3.4, but
aborts with 3.2 when given -O2. So it's a regression
of 3.2 only.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10033
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/10033: [3.2 regression] optimization breaks polymorphic references w/ 'typeid' operator
@ 2003-04-25 19:53 jbuck
0 siblings, 0 replies; 2+ messages in thread
From: jbuck @ 2003-04-25 19:53 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jfischer_5809, nobody
Synopsis: [3.2 regression] optimization breaks polymorphic references w/ 'typeid' operator
State-Changed-From-To: analyzed->closed
State-Changed-By: jbuck
State-Changed-When: Fri Apr 25 19:53:38 2003
State-Changed-Why:
Fixed for the next release (3.3).
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10033
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-25 19:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-12 14:24 c++/10033: [3.2 regression] optimization breaks polymorphic references w/ 'typeid' operator bangerth
2003-04-25 19:53 jbuck
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).