clang/test/SemaCXX/remove-nested-immediate-invocation-crash.cpp
raw| 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)) |