summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/lookup7.C
blob: eacdc897220e7bb1f103287cb3864ca676a77de8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// Origin: Jason Merrill <jason@cygnus.com>

struct A { typedef int B; };
template <int B> struct C : public A { 
  B b; 
  void f();
};


template <int B>
void C<B>::f() {
  B b;
}