summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/lookup9.C
blob: 683182c38001a7eec937d118e66c61dcbc37f85b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// Origin: "Artem Hodyush" <artem@duma.gov.ru>

struct B { int m; };

template< class T >
void
q( T& t ) {
  t.T::m=1;
}

void f() {
  B b;
  b.B::m=1;
  q( b );
}