[LLVMbugs] [Bug 22041] New: Template instantiation marks decl invalid after it is completely defined

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Dec 28 01:45:52 PST 2014


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: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141228/504eb26d/attachment.html>


More information about the llvm-bugs mailing list