http://llvm.org/bugs/show_bug.cgi?id=20033
Bug ID: 20033
Summary: template argument deduction can deduce 'auto' or
'decltype(auto)' from a return type
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++1y
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Consider:
template<typename T> T f();
template<> auto f() { return 0; }
template<> decltype(auto) f() { return 0; }
The second and third lines here are (presumably) ill-formed, because they
deduce a template argument of 'auto' or 'decltype(auto)'. (This is probably a
duplicate of PR20032, which seems to fail for the same reason.)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs