On 8/26/20 1:07 PM, Jason Merrill wrote:
On 8/26/20 12:56 PM, Nathan Sidwell wrote:
On 8/26/20 12:06 PM, Jason Merrill wrote:
On 8/26/20 8:30 AM, Nathan Sidwell wrote:


This still retains only recording on lambdas.  As the comment says, we
could enable for all templates.

If we're going to need it on all templates for modules, is there a reason not to go ahead and make that change now?

No reason.

Do we need a different approach for operator lookup in non-function template contexts, e.g. data member initializers?

Hm, I guess we do.

Perhaps represent the operation as a CALL_EXPR with CALL_EXPR_OPERATOR_SYNTAX set?

I think that'd work. To be strictly correct we need it everywhere, because (crazy user/testsuite):

template<typename T> void Foo (T t)
{
  { using namespace A;  !t; }
  { using namespace B;  !t; }
}

--
Nathan Sidwell

Reply via email to