summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template32.C
blob: 3bbb6e8c59c7d229c8345e6220910a0f41e2f306 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// Bug: Instantiating A<int> screws with class bindings for B

template <class T> struct A { };
struct B {
  typedef int foo;
  void f ();
};

void B::f () { A<int> a; foo i; }