 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Fraser Ross Guest
|
Posted: Fri Dec 08, 2006 9:44 pm Post subject: Names in dependent base classes |
|
|
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
|
Posted: Fri Dec 08, 2006 9:52 pm Post subject: Re: Names in dependent base classes |
|
|
It is known about. 32485 is the report number.
Fraser. |
|
| Back to top |
|
 |
Alisdair Meredith[TeamB] Guest
|
Posted: Sat Dec 09, 2006 12:29 am Post subject: Re: Names in dependent base classes |
|
|
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 |
|
 |
|
|
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
|
|