// Build don't link: // excess errors test struct foo { template T bar() { return staticbar( this ); } template static T staticbar( foo* ) { return 0; } }; void f() { foo t; int k = t.bar(); }