mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 09:26:41 +00:00

After compilation errors, expression a transformation result may not be usable. It triggers an assert in RemoveNestedImmediateInvocation and SIGSEGV in case of builds without asserts. This issue significantly affects clangd because source may not be valid during typing. Tests cases that I attached was reduce from huge C++ translation unit. Test Plan: check-clang Differential Revision: https://reviews.llvm.org/D133948
12 lines
386 B
C++
12 lines
386 B
C++
// RUN: not %clang_cc1 -fsyntax-only -verify -std=gnu++20 -ferror-limit 19 %s
|
|
// Creduced test case for the crash in RemoveNestedImmediateInvocation after compliation errros.
|
|
|
|
a, class b { template < typename c> consteval b(c
|
|
} template <typename...> using d = b;
|
|
auto e(d<>) -> int:;
|
|
}
|
|
f
|
|
}
|
|
g() {
|
|
auto h = "":(::i(e(h))
|