Skip to content

Assertion failure in clangd #109354

Closed
Closed
@ilovepi

Description

@ilovepi

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"

lsp.log

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"crashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions