http://llvm.org/bugs/show_bug.cgi?id=15799
Bug ID: 15799
Summary: Variadic pack at the beginning of function parameters
not seen as a non-deduced context
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
The following simple snippet fails to compile:
template<typename T> struct any{ template<typename U> any(U){} };
template<typename... Ts, typename T>
T back(any<Ts>..., T);
int main(){
using _ = decltype(back<int>(true, 42));
}
With:
main.cpp:7:24: error: no matching function for call to 'back'
using _ = decltype(back<int>(true, 42));
^~~~~~~~~
main.cpp:4:3: note: candidate template ignored: couldn't infer template
argument 'T'
T back(any<Ts>..., T);
May be related to http://llvm.org/bugs/show_bug.cgi?id=9020
--
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