aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaTemplate/concepts-GH86757.cpp
blob: 3122381b20359e3d9dd25306214af48171c5edde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -std=c++20 -Wfatal-errors -verify %s

template <typename> int a;
template <typename... b> concept c = a<b...>;
template <typename> concept e = c<>;

// must be a fatal error to trigger the crash
undefined; // expected-error {{a type specifier is required for all declarations}}

template <typename d> concept g = e<d>;
template <g> struct h
template <g d>
struct h<d>;