[LLVMbugs] [Bug 23267] New: missing initializer on template instantiated from variadic template class
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Apr 17 06:39:22 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: camorton2 at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150417/837ad20f/attachment.html>
More information about the llvm-bugs
mailing list