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

           Summary: Assertion failure in PCHWriterDecl.cpp:557: void
                    clang::PCHDeclWriter::VisitParmVarDecl(clang::ParmVarD
                    ecl*): Assertion `!D->isStaticDataMember() &&
                    "PARM_VAR_DECL can't be static data member"' failed.
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Consider:

  template<typename T> struct S { void g(void (*)(T)); };
  template<> void S<int>::g(void(*)(int)) {}

When compiled into a PCH with:

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

I get:

  clang: PCHWriterDecl.cpp:557: void
clang::PCHDeclWriter::VisitParmVarDecl(clang::ParmVarDecl*): Assertion
`!D->isStaticDataMember() && "PARM_VAR_DECL can't be static data member"'
failed.

I'm using clang trunk 108560.

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to