[PATCH] D111283: [clang] template / auto deduction deduces common sugar

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 13 03:18:47 PDT 2022


alexfh added a comment.

I've reverted d200db38637884fd0b421802c6094b2a03ceb29e <https://reviews.llvm.org/rGd200db38637884fd0b421802c6094b2a03ceb29e> in 637da9de4c6619c0e179c2c2f0dbfebd08ac2a0f <https://reviews.llvm.org/rG637da9de4c6619c0e179c2c2f0dbfebd08ac2a0f>.

And a bit more compact test case:

  template <typename T>
  using P = int T::*;
  
  template <typename T, typename... A>
  void j(P<T>, T, A...);
  
  template <typename T>
  void j(P<T>, T);
  
  struct S {
    int b;
  };
  void g(P<S> k, S s) { j(k, s); }


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D111283



More information about the cfe-commits mailing list