aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb36.C
blob: 415e5bdf6f495b8b5a2fd88f57b95f4a75f46d73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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>
foo<T>::foo(vector<int> v_) :v(v_), t() {} // ERROR - default arg for member template

foo<float> a;