Re: c++: template operator lookup caching

2020-08-26 Thread Nathan Sidwell
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

Re: c++: template operator lookup caching

2020-08-26 Thread Jason Merrill via Gcc-patches
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: Jason's fix to retain operator lookups inside dependent lambda functions turns out to be needed on the modules branch for all template functions.  Because the context

Re: c++: template operator lookup caching

2020-08-26 Thread Nathan Sidwell
On 8/26/20 12:06 PM, Jason Merrill wrote: On 8/26/20 8:30 AM, Nathan Sidwell wrote: Jason's fix to retain operator lookups inside dependent lambda functions turns out to be needed on the modules branch for all template functions.  Because the context for that lookup no longer exists in imports.

Re: c++: template operator lookup caching

2020-08-26 Thread Jason Merrill via Gcc-patches
On 8/26/20 8:30 AM, Nathan Sidwell wrote: Jason's fix to retain operator lookups inside dependent lambda functions turns out to be needed on the modules branch for all template functions.  Because the context for that lookup no longer exists in imports.  There were also a couple of shortcomings,

c++: template operator lookup caching

2020-08-26 Thread Nathan Sidwell
Jason's fix to retain operator lookups inside dependent lambda functions turns out to be needed on the modules branch for all template functions. Because the context for that lookup no longer exists in imports. There were also a couple of shortcomings, which this patch fixes. (a) we conflate '