aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/lookup8.C
blob: cc562bf5d754622dc74fd2bb2dd151b0587dab3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Build don't link:
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
class X{};

class Y : public X<int>
{
  void f();
};

void Y::f()
{
  X x; // ERROR - X is not a type.
}