[LLVMbugs] [Bug 7660] New: Assertion failure in PCHWriterDecl.cpp:557: void clang::PCHDeclWriter::VisitParmVarDecl(clang::ParmVarDecl*): Assertion `!D->isStaticDataMember() && "PARM_VAR_DECL can't be static data member"' failed.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jul 16 15:07:53 PDT 2010
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: unassignedclangbugs at nondot.org
ReportedBy: llvmbugs at contacts.eelis.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list