🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: dynamic_cast<const B&>

#3790
From: Nathan Myers, http://www.cantrip...
Date: Sun, 24 Mar 1996 04:43
28 lines
1669 bytes
Martin E. Nordberg III wrote:
> 
>   I just installed MS VC++ 4.1.  The following code (strained
> from my larger code) now fails to compile:
> 
>     class A { virtual ~A() };
>     class B : public A {};
> 
>     void test( const A&  a )
>       { const B& b = dynamic_cast<const B&>( a ); }
> 
>   Did Microsoft goof ... ?

"Heh heh heh."

But seriously... new implementations from the Draft are bound to 
have mistakes.  What's important is whether they get fixed after
attention is called to them.  I'll be interested to see whether
the next release still has this bug.

Nathan Myers
ncm@cantrip.org  http://www.cantrip.org/
---
[ 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: <3154A368.4FE8E787@cantrip.org>
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
References: <4isb5a$ct4$1@mhafc.production.compuserve.com>

Show Full Headers
Complete Article Headers
From: "Nathan Myers, http://www.cantrip.org/" <ncm@cantrip.org>
Message-ID: <3154A368.4FE8E787@cantrip.org>
X-Original-Date: Sat, 23 Mar 1996 17:20:40 -0800
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
Date: 24 Mar 96 04:43:38 GMT
Approved: fjh@cs.mu.oz.au
Newsgroups: comp.std.c++
Subject: Re: dynamic_cast<const B&>
Organization: The Cantrip Cooperative
References: <4isb5a$ct4$1@mhafc.production.compuserve.com>
X-Mailer: Mozilla 2.0 (X11; I; Linux 1.2.13 i386)
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMVTTFeEDnX0m9pzZAQGk1QF/YAshxgDH84SfOQmvmXtpAyLH7UTqPCvw
 Vr9gI8ZFDe5nzjGUJjdWz+It+bwk0Yw9
 =wgfo