[LLVMbugs] [Bug 7670] New: PCHWriterDecl.cpp:848: void clang::PCHDeclWriter::VisitClassTemplateDecl(clang::ClassTemplateDecl*): Assertion `IsKeptInFoldingSet(&*I)' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 19 05:24:27 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7670

           Summary: PCHWriterDecl.cpp:848: void
                    clang::PCHDeclWriter::VisitClassTemplateDecl(clang::Cl
                    assTemplateDecl*): Assertion `IsKeptInFoldingSet(&*I)'
                    failed.
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: llvmbugs at contacts.eelis.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Consider:

  template<typename> class C;
  template<> class C<int>;
  template<> class C<int>;

When I try to compile this into a PCH with:

  clang -cc1 t.hpp -emit-pch -o t.hpp.pch

I get:

  clang: PCHWriterDecl.cpp:848: void
clang::PCHDeclWriter::VisitClassTemplateDecl(clang::ClassTemplateDecl*):
Assertion `IsKeptInFoldingSet(&*I)' failed.

I'm using clang r108692.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list