brintos

brintos / llvm-project-archived public Read only

0
0
Text · 388 B · 3122381 Raw
14 lines · cpp
1// RUN: %clang_cc1 -std=c++20 -Wfatal-errors -verify %s2 3template <typename> int a;4template <typename... b> concept c = a<b...>;5template <typename> concept e = c<>;6 7// must be a fatal error to trigger the crash8undefined; // expected-error {{a type specifier is required for all declarations}}9 10template <typename d> concept g = e<d>;11template <g> struct h12template <g d>13struct h<d>;14