🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #4034

Re: dynamic_cast

#4034
From: Jason Merrill
Date: Mon, 15 Apr 1996 02:47
18 lines
1513 bytes
>>>>> John E Potter <jpotter@falcon.lhup.edu> writes:

> In trying to trace a perceived bug in g++2.7.2 to the DWP, I
> found that it seems vague.  I have paraphrased to save space.  If
> I messed it up, say so.  In the following, assume B is a polymorphic
> base of D and that A is unrelated.

I think the WP is pretty clear that a null pointer should not be adjusted
or dereferenced.  I have fixed this in g++ for 2.8.

Jason


[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
Technical Details
Message-ID: <u9pw9askr1.fsf@yorick.cygnus.com>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
References: <4kmdqk$kjk@jake.esu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: jason@cygnus.com (Jason Merrill)
Newsgroups: comp.std.c++
Subject: Re: dynamic_cast
Date: 15 Apr 1996 02:47:32 GMT
Organization: Cygnus Support, Mountain View, CA
Sender: jason@cygnus.com
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <u9pw9askr1.fsf@yorick.cygnus.com>
References: <4kmdqk$kjk@jake.esu.edu>
NNTP-Posting-Host: taumet.eng.sun.com
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
X-Nntp-Posting-Host: yorick.cygnus.com
In-Reply-To: jpotter@falcon.lhup.edu's message of 12 Apr 1996 20:37:06 GMT
X-Newsreader: Gnus v5.0
Content-Length: 428
Originator: clamage@taumet