summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/scoped6.C
blob: b83b08fe94f97a0b1ef44b56f9e8aa66680a0d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
template <typename X>
class Foo {
  int i;
public:
  Foo() {
    X::explode(); // { dg-error "" }
  }
};

class Bar {
  Foo<int> foo_;
public:
  Bar() {}  // { dg-message "instantiated" }
};

template class Foo<int>;