summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/this1.C
blob: 20051bf7515b27f6ccc8230c37b1a01ad382515a (plain)
1
2
3
4
5
6
7
8
// PR c++/27581
// { dg-do compile }

struct A
{
    template<int> static void foo();
    static void bar() { this->A::foo<0>(); } // { dg-error "unavailable" }
};