Merge from mainline.
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / this1.C
blob20051bf7515b27f6ccc8230c37b1a01ad382515a
1 // PR c++/27581
2 // { dg-do compile }
4 struct A
6     template<int> static void foo();
7     static void bar() { this->A::foo<0>(); } // { dg-error "unavailable" }
8 };