This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch] Fix conersion operator lookup


Nathan Sidwell wrote:

Mark,
Lookup for a particular conversion operator looped unnecessarily, but more
importantly lookup_conversions, which gathers all the visible conversions
would only DTRT in singly inherited hierarchies.

This is one of those cases where you're sort-of amazed people didn't run into more serious problems.


This replacement does the set of parallel lookups that need to be done,
complete with the hiding that happens with virtual bases.  Whilst there
I took advantage of TYPE_HAS_CONVERSION, to avoid unnecessary walking.

booted & tested on i686-pc-linux-gnu, ok?

Yes, thanks.


--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]