================ @@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c++20 -verify %s + +template <typename T> void foo(); +template <class... Ts> +concept ConceptA = requires { foo<Ts>(); }; +// expected-error@-1 {{expression contains unexpanded parameter pack 'Ts'}} + +template <class> +concept ConceptB = ConceptA<int>; + +template <ConceptB Foo> void bar(Foo); + +void test() { bar(1); } ---------------- cor3ntin wrote:
I think we can put that in an existing file, `test/SemaCXX/concept-crash-on-diagnostic.cpp` seems appropriate (in a GH138823 namespace) https://github.com/llvm/llvm-project/pull/147938 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits