blob: 2bb6552f2a3ce80660db2f07c6c9d8a14001f571 [file] [log] [blame]
// { 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>();
}