[PATCH] D128745: [c++] implements DR692, DR1395 and tentatively DR1432, about partial ordering of variadic template partial specialization or function template

joanahalili via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 26 04:03:27 PDT 2022


joanahalili added a comment.

We have some compilation failures on our end because of function template parameter deduction when passing the function template to a function pointer.

  typedef void (*f)(const int&);
  
  template <typename T>
  void F(T value) {}
  
  template <typename T>
  void F(const T& value){}
  
  void q(f);
  
  void w() {
      q(&F);
  }

Is this an intended outcome for this patch?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D128745



More information about the cfe-commits mailing list