[C++ PATCH] classtype_has_nothrow_assign_or_copy_p is confusing

Jason Merrill jason@redhat.com
Wed Jul 5 18:31:00 GMT 2017


On Wed, Jul 5, 2017 at 11:03 AM, Nathan Sidwell <nathan@acm.org> wrote:
> On 07/05/2017 10:41 AM, Jason Merrill wrote:
>>
>> On Mon, Jul 3, 2017 at 12:58 PM, Nathan Sidwell <nathan@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)

Sounds good.

Jason



More information about the Gcc-patches mailing list