http://llvm.org/bugs/show_bug.cgi?id=15276
Bug ID: 15276
Summary: Expanding template parameter pack followed by
additional arguments into alias template trips
assertion
Product: clang
Version: 3.2
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
Created attachment 10022
--> http://llvm.org/bugs/attachment.cgi?id=10022&action=edit
preprocessed source
The smallest program I found which trips the assertion is:
template<typename... Ts>
struct Foo
{
template<typename U>
void foo();
};
template<typename... Ts>
using Bar = Foo<Ts...>;
template<typename... Ts>
template<typename U>
void Foo<Ts...>::foo()
{
Bar<Ts..., U> bar;
}
Any of the following make it go away:
- Bar<Ts...> instead of Bar<Ts..., U>
- Bar<U, Ts...> instead of Bar<Ts..., U>
- Foo<Ts..., U> instead of Bar<Ts..., U>
- using Bar = int; instead of using Bar = Foo<Ts...>;
Clang 3.1 and 3.2 both assert.
--
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