sammccall added a comment.

In D120258#3340357 <https://reviews.llvm.org/D120258#3340357>, @sammccall wrote:

>> And I've even seen this:
>> F22205415: grafik.png <https://reviews.llvm.org/F22205415>
>> With a lambda in a versioned method like
>>
>>   template <Version V> void Foo<V>::foo()
>
> OK, this is scary... this is multiple hints at the same point right?

I haven't been able to reproduce this.

I tried:

  template <int> class Foo { void foo(); };
  
  template <int X>
  void Foo<X>::foo() {
      auto m = [this](auto x) {};
      m(42);
  }
  
  Foo<0> a;
  // Foo<1> b;

And I get no hints at all. (Presumably because we only traverse the primary 
template of `foo`, and Foo<X>::foo()::m::operator() is never instantiated, only 
Foo<0>::foo()::m::operator() is (with `int`).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120258/new/

https://reviews.llvm.org/D120258

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to