https://bugs.llvm.org/show_bug.cgi?id=49724

            Bug ID: 49724
           Summary: Partial template specialization error with member
                    function
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

The code:

#include <cstddef>
#include <type_traits>

template <class T, class C, T (C::*g)(), bool (C::*s)(T), class dummy = void>
class pmfu;

template <class T, class C, T (C::*g)(), bool (C::*s)(T)>
class pmfu<T,C,g,s,typename std::enable_if<g != nullptr && s == nullptr>::type> 
  {
  public:
  explicit pmfu(C & c) { }
  };

template<typename T>
struct pmfu_d
  {
  pmfu_d() : gl_r() { }
  T gl_r;
  T gl_fun_r_read() { return gl_r; }
  };

pmfu_d<char> data_inst_char;

pmfu<char,
     pmfu_d<char>,
     &pmfu_d<char>::gl_fun_r_read,
     nullptr> 
pf_read_ch(data_inst_char);

int main() { return 0; }

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to