On 07/05/2017 10:41 AM, Jason Merrill wrote:
On Mon, Jul 3, 2017 at 12:58 PM, Nathan Sidwell <nat...@acm.org> wrote:
I found classtype_has_nothrow_assign_or_copy_p confusing, trying to figure
out when it should return false and when true.

I'm curious why you were looking at it?  It's only used by obsolete
trait built-ins.


It showed up grepping CLASSTYPE_CONSTRUCTORS.

Here's my plan for class member name handling:

1) turn the sorted field vector into a member hash by name. deploy STAT_HACK as appropriate
2) find cdtors by name in method_vec, not magic slot
3) move all-but-conv-ops from METHOD_VEC into the member hash table
4) (maybe) put all the conv ops on a single overload, found by name in the member hash table. (I'm thinking the separation by non-canonical type is not a win)

Put the lookup & pushing routines in name-lookup.c. Keep the hierarchy searching in search.c

TYPE_METHODS & CLASSTYPE_METHOD_VEC die.

Happy to talk through this next week in Toronto (I presume you'll be there?)

nathan

--
Nathan Sidwell

Reply via email to