Debian Codegraph @

gcc/testsuite/g++.dg/lookup/this1.C

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