aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb36.C
blob: e01dbdae6db74228ce95f9e911c7ddcb3bbf1223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Build don't link:

#include <vector>

template <typename T=float> class foo {
public:
  foo();
  foo(vector<int> v);
private:
  vector<int> v;
  T t;
};

template <typename T>
foo<T>::foo()               :v(),   t() {}
template <typename T=float>	// ERROR - default parm for member template XFAIL *-*-*
foo<T>::foo(vector<int> v_) :v(v_), t() {}

foo<float> a;