Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #8032

Closed
llvmbot opened this issue Jul 17, 2010 · 2 comments
Labels
bugzilla Issues migrated from bugzilla c++

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Jul 17, 2010

Bugzilla Link 7660
Resolution FIXED
Resolved on Jul 19, 2010 05:17
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor
CC @akyrtzi,@DougGregor,@efriedma-quic,@tkremenek

Extended Description

Consider:

template struct S { void g(void ()(T)); };
template<> void S::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.

@efriedma-quic
Copy link
Collaborator

I think the cause here is r108266.

@akyrtzi
Copy link
Contributor

akyrtzi commented Jul 19, 2010

Fixed at r108692.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla c++
Projects
None yet
Development

No branches or pull requests

3 participants