summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp82.C
blob: 2bb6552f2a3ce80660db2f07c6c9d8a14001f571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }

struct foo {
       template<typename T> T bar() { return staticbar<T>( this ); }
       template<typename T> static T staticbar( foo* ) { return 0; }
};

void f()
{
       foo t;
       int k = t.bar<int>();
}