BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Names in dependent base classes

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++)
View previous topic :: View next topic  
Author Message
Fraser Ross
Guest





PostPosted: Fri Dec 08, 2006 9:44 pm    Post subject: Names in dependent base classes Reply with quote



The rule about not looking inside dependent base classes for names does
not seem to be adhered to by the latest compiler from Borland. My code
is being compiled when it actually should have been using this-> before
the names, or one of the other alternatives, as I found with a simple
test using the Comeau online compiler.

I can't see anything about this in Quality Central but I don't have much
time to look after being cut off of broadband.

Fraser.
Back to top
Fraser Ross
Guest





PostPosted: Fri Dec 08, 2006 9:52 pm    Post subject: Re: Names in dependent base classes Reply with quote



It is known about. 32485 is the report number.

Fraser.
Back to top
Alisdair Meredith[TeamB]
Guest





PostPosted: Sat Dec 09, 2006 12:29 am    Post subject: Re: Names in dependent base classes Reply with quote



Fraser Ross wrote:

Quote:
The rule about not looking inside dependent base classes for names
does not seem to be adhered to by the latest compiler from Borland.
My code is being compiled when it actually should have been using
this-> before the names, or one of the other alternatives, as I found
with a simple test using the Comeau online compiler.

This is part of what is often referred to as '2-phase lookup' for
templates. This feature has been almost as slow as export in being
adopted by compiler vendors. Metrowerks has had this for a long time,
obviously EDG (getting this right was part of why export was so
expensive) and I believe GCC implement this now.

Last I heard Microsoft had no intention to implement it, not sure about
Intel as they use an EDG front end, but aim for bug-compatibility with
MSVC as well.


Expect code to break when this feature is first implemented on a
compiler you use - it took Boost a while to realise Metrowerks-only
failures where genuine Boost bugs, back when 2-phase compilers were
rare as hen's teeth.

--
AlisdairM(TeamB)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.