ASTVisitor: Lifetime of CXXRecordDecl

Hi,

first of all Happy New Year to everyone!

I have a strange SEGV in my tool.

I store inside a

ASTVisitor::VisitCXXRecordDecl(CXXRecordDecl*Declaration)

the Declaration in a std::vector for later processing.

After traversing the AST the Declaration pointer in the vector seems to be invalid.

Any idea?

Thanks

Marcel