ilya-biryukov added a comment.
The following assertion from `DeclContext::removeDecl` was failing before:
assert((D->NextInContextAndBits.getPointer() || D == LastDecl) &&
"decl is not in decls list");
Repository:
rC Clang
https://reviews.llvm.org/D42810