https://bugs.llvm.org/show_bug.cgi?id=42805
Bug ID: 42805
Summary: Failure to match template function
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
template<typename... Args>
void func(void(*)(Args...)) {}
template <typename T>
using param = int;
template <typename... Args>
void func2(param<Args>...) {}
void test()
{
func(&func2<>);
}
// prog.cc:12:5: error: no matching function for call to 'func'
// func(&func2<>);
// ^~~~
// prog.cc:2:6: note: candidate function [with Args = <>] not viable: no
overload of 'func2' matching 'void (*)()' for 1st argument
// void func(void(*)(Args...)) {}
--
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