// DR 2428 // { dg-do compile { target c++20 } } template concept C1 [[deprecated]] = true; template concept C2 __attribute__((deprecated)) = false; template concept C3 [[deprecated]] = true; template concept C4 __attribute__((deprecated)) = false; static_assert(C3); // { dg-warning "'C3' is deprecated" } static_assert(C4); // { dg-error "static assertion failed" } // { dg-warning "'C4' is deprecated" "" { target *-*-* } .-1 } template requires C3 // { dg-warning "'C3' is deprecated" } int fn1(T t) { return 0; }