[llvm-bugs] [Bug 25250] New: Template argument deduction via alias template fails spuriously
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 19 06:02:59 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: r.hl at gmx.net
CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151019/f76b57b1/attachment-0001.html>
More information about the llvm-bugs
mailing list