FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp82.C
blobd4bb37aa410933b9c0be36294ebda8fd7d3c84a8
1 // Build don't link:
2 // excess errors test
4 struct foo {
5        template<typename T> T bar() { return staticbar<T>( this ); }
6        template<typename T> static T staticbar( foo* ) { return 0; }
7 };
9 void f()
11        foo t;
12        int k = t.bar<int>();