1 // PR c++/27581
2 // { dg-do compile }
3 
4 struct A
5 {
6     template<int> static void foo();
barA7     static void bar() { this->A::foo<0>(); } // { dg-error "unavailable" }
8 };
9