[LLVMbugs] [Bug 20033] New: template argument deduction can deduce 'auto' or 'decltype(auto)' from a return type
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jun 13 14:12:31 PDT 2014
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: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140613/2e891ce8/attachment.html>
More information about the llvm-bugs
mailing list