// PR c++/85979 // { dg-do compile { target c++11 } } template struct A { }; template void f(A) { } #if __cpp_concepts template void g() requires (alignof(T) == 0); #endif int main() { f(); // { dg-error "no match" } #if __cpp_concepts g(); // { dg-error "no match" "" { target c++20 } } #endif } // { dg-bogus "__alignof__" "" { target *-*-* } 0 }