summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/tempargs.C
blob: 5ca92350a5dda95eac05a573afdf20d8c9f1cc2a (plain)
1
2
3
4
5
6
7
8
// { dg-do assemble  }
// GROUPS passed templates overloading
template<class T> class Vector { };
template<class T> struct Sort { static void sort (Vector<typename T::foo> &); };
template<class T> void Sort<T>::sort (Vector<typename T::foo> &) { }
struct whee { typedef int foo; };

void f (Vector<int> &vi) { Sort<whee>::sort (vi); }