xref: /llvm-project/clang/test/SemaCXX/remove-nested-immediate-invocation-crash.cpp (revision 133b6d7db90d9b52b01e8e09e1aa8fb8d2da0f9d)
1 // RUN: not %clang_cc1 -fsyntax-only -verify -std=gnu++20 -ferror-limit 19 %s
2 // Creduced test case for the crash in RemoveNestedImmediateInvocation after compliation errros.
3 
4 a, class b {                               template < typename c>                 consteval b(c
5 } template <typename...> using d = b;
6 auto e(d<>) -> int:;
7 }
8 f
9 }
10 g() {
11                     auto h = "":(::i(e(h))
12