http://llvm.org/bugs/show_bug.cgi?id=22041
Bug ID: 22041
Summary: Template instantiation marks decl invalid after it is
completely defined
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
consider:
struct A;
template <typename T> struct SS { template <typename U> struct X; };
template <typename T> template <A> struct SS<T>::X<A *> { SS<int> X; };
Sema::InstantiateClass will call ActOnFields. ActOnFields will mark the class
as defined. After that point, we will try to
InstantiateClassTemplatePartialSpecialization. However, this will fail causing
us to setInvalidDecl() after the class has been defined.
--
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