URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.robertl/] [eb36.C] - Rev 414
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
#include <vector>
using namespace std;
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() {} // { dg-error "" } default arg for member template
foo<float> a;
Go to most recent revision | Compare with Previous | Blame | View Log