https://llvm.org/bugs/show_bug.cgi?id=23267
Bug ID: 23267
Summary: missing initializer on template instantiated from
variadic template class
Product: clang
Version: 3.5
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
#include <cstdio>
template <class ...T> struct A {};
template < template < class ..., class ... _T , _T ... > class ... T > struct B
{
template <class ...U> struct C {
template <int ...I> struct D {
A<T<U>[I]...> f()
{
printf("Yes called f\n");
return A<T<U>[I]...>();
}
};
};
};
template <class T> struct E {};
A<> a1 = B<>::C<>::D<>().f();
int main(void){}
Function f() is not called.
Clang AST does not have the initializer for a1
<clang::VarDecl>
VarDecl 0x13197c50 <a.cpp:20:1, col:5> col:5 a1 'A<>':'struct A<>'
</clang::VarDecl>
--
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