summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/lookup3.C
blob: d4bf79830304ec32cea18cf16402fd74a43f6255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct X {};

template <int>
struct Base {
    static void foo () { 
      X::NONEXISTENT (); // { dg-error "" }
    }
};

int main () {
  Base<2>::foo ();
}