Open szmarczak opened 3 days ago
@llvm/issue-subscribers-clangd
Author: Szymon Marczak (szmarczak)
$ clangd-19 --version
Ubuntu clangd version 19.1.1 (1ubuntu1)
Features: linux+grpc
Platform: x86_64-pc-linux-gnu
@llvm/issue-subscribers-clang-frontend
Author: Szymon Marczak (szmarczak)
This is a regression in clang trunk: https://godbolt.org/z/rarc6EbYs
CC @cor3ntin
@mizvekov
It crashes clangd.
``` PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. Stack dump: 0. /home/openvscode-server/latte/source/bug.hpp:18:19: current parser token ')' 1. /home/openvscode-server/latte/source/bug.hpp:17:12: parsing function body 'foo' 2. /home/openvscode-server/latte/source/bug.hpp:17:12: in compound statement ('{}') I[03:30:27.300] ut symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): 0 libLLVM.so.19.1 0x00007f1b8c46512f llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 63 1 libLLVM.so.19.1 0x00007f1b8c462e39 llvm::sys::RunSignalHandlers() + 89 2 libLLVM.so.19.1 0x00007f1b8c465880 3 libc.so.6 0x00007f1b8a6c9250 4 libclang-cpp.so.19.1 0x00007f1b94430402 clang::TypeLoc::getLocalAlignmentForType(clang::QualType) + 34 5 libclang-cpp.so.19.1 0x00007f1b94430485 clang::TypeLoc::getFullDataSizeForType(clang::QualType) + 101 6 libclang-cpp.so.19.1 0x00007f1b95005834 clang::TypeLocBuilder::pushTrivial(clang::ASTContext&, clang::QualType, clang::SourceLocation) + 68 7 libclang-cpp.so.19.1 0x00007f1b94f67653 8 libclang-cpp.so.19.1 0x00007f1b94f6734f 9 libclang-cpp.so.19.1 0x00007f1b94f1f71f 10 libclang-cpp.so.19.1 0x00007f1b94f266ab 11 libclang-cpp.so.19.1 0x00007f1b94f5f9a4 12 libclang-cpp.so.19.1 0x00007f1b94f5f2e1 13 libclang-cpp.so.19.1 0x00007f1b94f28716 14 libclang-cpp.so.19.1 0x00007f1b94f565d9 15 libclang-cpp.so.19.1 0x00007f1b94f26732 16 libclang-cpp.so.19.1 0x00007f1b94f5fa46 17 libclang-cpp.so.19.1 0x00007f1b94f5f2e1 18 libclang-cpp.so.19.1 0x00007f1b94f28716 19 libclang-cpp.so.19.1 0x00007f1b94f565d9 20 libclang-cpp.so.19.1 0x00007f1b94f26732 21 libclang-cpp.so.19.1 0x00007f1b94f5f9a4 22 libclang-cpp.so.19.1 0x00007f1b94f66916 23 libclang-cpp.so.19.1 0x00007f1b94f63e48 24 libclang-cpp.so.19.1 0x00007f1b94f1f71f 25 libclang-cpp.so.19.1 0x00007f1b94f266ab 26 libclang-cpp.so.19.1 0x00007f1b94f2652d clang::Sema::SubstTemplateArgument(clang::TemplateArgumentLoc const&, clang::MultiLevelTemplateArgumentList const&, clang::TemplateArgumentLoc&, clang::SourceLocation, clang::DeclarationName const&) + 77 27 libclang-cpp.so.19.1 0x00007f1b94de5599 28 libclang-cpp.so.19.1 0x00007f1b94de5125 clang::Sema::SubstDefaultTemplateArgumentIfAvailable(clang::TemplateDecl*, clang::SourceLocation, clang::SourceLocation, clang::Decl*, llvm::ArrayRef