FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / template9.C
blob80fd8c9775ba2d1f7605d97c1a1d51c242b34fed
1 // PRMS Id: 4864
2 // Bug: g++ can't deal with a guiding declaration which comes before the
3 // template.
4 // Build don't link:
6 void f (const int&, const int&);
7 template <class T> void f (const T&, const T&) { }
9 void g (int a)
11   f (a,a); // gets bogus error - two identical candidates