Re: BUG: compiler allows for creation of objects without destructor compiled
From: Edward Diener (eddielee_at_tropicsoft.com)
Date: 04/09/04
- Next message: Maxim Yegorushkin: "Re: BUG: compiler allows for creation of objects without destructor compiled"
- Previous message: NeoGeo: "Re: Missing UITypeEditors?"
- In reply to: Carl Daniel [VC++ MVP]: "Re: BUG: compiler allows for creation of objects without destructor compiled"
- Next in thread: Carl Daniel [VC++ MVP]: "Re: BUG: compiler allows for creation of objects without destructor compiled"
- Reply: Carl Daniel [VC++ MVP]: "Re: BUG: compiler allows for creation of objects without destructor compiled"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 8 Apr 2004 22:01:20 -0400
Carl Daniel [VC++ MVP] wrote:
> Maxim Yegorushkin wrote:
>>
>> So, are MS compiler guys going to fix it?
>
> It's already fixed in Whidbey ("VC8").
>
>> cl -c -EHs privatedest0408.cpp
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.40309
> for 80x86 Copyright (C) Microsoft Corporation. All rights reserved.
>
> privatedest0408.cpp
> privatedest0408.cpp(8) : warning C4624: 'derived' : destructor could
> not be generated because a base class destructor is inaccessible
> privatedest0408.cpp(14) : error C2248: 'base::~base' : cannot access
> private member declared in class 'base'
> privatedest0408.cpp(5) : see declaration of 'base::~base'
> privatedest0408.cpp(3) : see declaration of 'base'
> This diagnostic occurred in the compiler generated function
> 'derived::~derived(void)'
>
> Since there's an easy workaround (just don't write illegal code) it's
> unlikely that this will be fixed in any other form (patch, service
> pack, etc) before Whidbey ships ("1st half of 2005" is the latest
> official word).
You say that as if you believe that if a serious some bug has no easy
workaround it is likely that it will be fixed before Whidbey ships <g> .
- Next message: Maxim Yegorushkin: "Re: BUG: compiler allows for creation of objects without destructor compiled"
- Previous message: NeoGeo: "Re: Missing UITypeEditors?"
- In reply to: Carl Daniel [VC++ MVP]: "Re: BUG: compiler allows for creation of objects without destructor compiled"
- Next in thread: Carl Daniel [VC++ MVP]: "Re: BUG: compiler allows for creation of objects without destructor compiled"
- Reply: Carl Daniel [VC++ MVP]: "Re: BUG: compiler allows for creation of objects without destructor compiled"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|