2 // { dg-do compile { target c++14 } }
3 // { dg-additional-options "-fconcepts" }
12 void B::foo(auto) {} // { dg-error "cannot define" }
24 void Y::Z::foo(auto) {} // { dg-error "cannot define" }
27 void X::Y::Z::foo(auto) {} // { dg-error "cannot define" }