Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/template9.C

raw
1 // { dg-do assemble }
2 // PRMS Id: 4864
3 // Bug: g++ can't deal with a guiding declaration which comes before the
4 // template.
5
6 void f (const int&, const int&);
7 template <class T> void f (const T&, const T&) { }
8
9 void g (int a)
10 {
11 f (a,a); // { dg-bogus "" } two identical candidates
12 }