summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/scoped6.C
blob: 51393961ab28f66735663f167ca915ec70ef4c19 (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 "required" }
};

template class Foo<int>;