Re: [bug] typedefed base class not visible [VC8 RTM.050727-4200]
- From: Tamas Demjen <tdemjen@xxxxxxxxx>
- Date: Thu, 03 Nov 2005 10:27:09 -0800
Fernando Cacciola wrote:
I'm getting lots of errors on code that compiled fine in 7.1. Most of it boils down to the following new compiler bug:
struct A { int foo() const { return 1; } };
struct B : A { typedef A base ; };
I think the new compiler is right, 7.1 is wrong, and the problem is in your code. You're doing private inheritance. By writing
struct B : A
you are essencially making foo() invisible. You should try
struct B : public A
Tom .
- Follow-Ups:
- Re: [bug] typedefed base class not visible [VC8 RTM.050727-4200]
- From: Fernando Cacciola
- Re: [bug] typedefed base class not visible [VC8 RTM.050727-4200]
- References:
- [bug] typedefed base class not visible [VC8 RTM.050727-4200]
- From: Fernando Cacciola
- [bug] typedefed base class not visible [VC8 RTM.050727-4200]
- Prev by Date: Re: convert ^string to string or to LPCWSTR
- Next by Date: Re: convert ^string to string or to LPCWSTR
- Previous by thread: [bug] typedefed base class not visible [VC8 RTM.050727-4200]
- Next by thread: Re: [bug] typedefed base class not visible [VC8 RTM.050727-4200]
- Index(es):
Relevant Pages
|