[llvm-bugs] [Bug 26017] New: Template arg deduction fails for alias, works w/o alias
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jan 4 13:18:03 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26017
Bug ID: 26017
Summary: Template arg deduction fails for alias, works w/o
alias
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: jascha at jawset.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
template<class Sig>
struct Foo {
Foo(const Sig&) {}
};
template<class... Args>
using FooAlias = Foo<void(Args...)>;
template<class... Args>
// compiles:
// void bar(const Foo<void(Args...)>&)
// error: no matching function for call to 'bar'
void bar(const FooAlias<Args...>&)
{}
void baz() {}
int main() {
bar(FooAlias<>(baz));
}
--
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/20160104/726865ee/attachment.html>
More information about the llvm-bugs
mailing list