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

            Bug ID: 25250
           Summary: Template argument deduction via alias template fails
                    spuriously
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

template <typename... T>
using funptr = void(*)(T...);

template <typename... T>
void f(funptr<T...>) {}

template void f(void(*)());

-----------------------------------------------------

The declared function template is ignored: "[…] failed template argument
deduction void f(funptr<T...>) {}".
If we use deduction from a function call instead, the error message suggests
that, although T is correctly deduced(!), there is a substitution failure.

(The above is indeed well-formed though; see CWG 1430 and 1700)

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

Reply via email to