Closed
Description
We're seeing an assertion failure in clangd
in Fuchsia code. This code compiles fine, both in release and assert builds, so its a bit surprising. We found this because it was crashing for our developers.
Error :
clangd: /usr/local/google/home/paulkirth/llvm-fork/clang/lib/Serialization/ASTWriterDecl.cpp:1884: void clang::ASTDeclWriter::VisitTemplateTypeParmDecl(TemplateTypeParmDecl *): Assertion `(bool)TC == D->hasTypeConstraint()' failed.\n"
Do we have a guide on how to obtain a reproducer for clangd? is using the preceding compile command to get a preprocessed cpp file sufficient? The Fuchsia build is quite large, and I'm not sure how to provide a nice reproducer that will work w/ clangd.