public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/2910
@ 2001-05-28 4:36 nathan
0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2001-05-28 4:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/2910; it has been noted by GNATS.
From: nathan@gcc.gnu.org
To: Christoph.Pesch@web.de, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: c++/2910
Date: 28 May 2001 11:29:55 -0000
Synopsis: dynamic_cast seems to lose or change information
State-Changed-From-To: analyzed->closed
State-Changed-By: nathan
State-Changed-When: Mon May 28 04:29:54 2001
State-Changed-Why:
further email from originator points out this invokes undefined effects.
specifically we bind a temporary to a reference, and then
the temporary goes out of scope. The dynamic cast
version fails, as they dynamic cast is implemented by a function
call which clobbers the memory of that temporary. The
static cast case does not fail, because memory happens to
have the right things in it.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2910&database=gcc
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/2910
@ 2001-05-28 3:16 nathan
0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2001-05-28 3:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/2910; it has been noted by GNATS.
From: nathan@gcc.gnu.org
To: Christoph.Pesch@web.de, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: c++/2910
Date: 28 May 2001 10:10:23 -0000
Synopsis: dynamic_cast seems to lose or change information
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Mon May 28 03:10:23 2001
State-Changed-Why:
confirmed. Very strange
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2910&database=gcc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-28 4:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-28 4:36 c++/2910 nathan
-- strict thread matches above, loose matches on Subject: below --
2001-05-28 3:16 c++/2910 nathan
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).