https://bugs.llvm.org/show_bug.cgi?id=51899
Bug ID: 51899
Summary: [c++] variadic template specialization doesn't
consider template parameter default value
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: nickhuan...@hotmail.com
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
The following code snippet is accepted. But I thought the template
specialization should consider "First" is using default type "char" instead of
"int". Is this a bug? (I tried in godbolt.org and both GCC and MSVC++ all
behave like clang. However, still I doubt this is correct. Can someone verify
this?
template<class...Ts,class First=char>
void foo(First,Ts...){}
template<>
void foo<int*>(int,int*);
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs