repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb36.C
blob
56e67b30082017869c6aa2632f38ae1ff6c17ad3
1
// { dg-do assemble }
2
#include <vector>
3
using namespace std;
4
5
template <typename T=float> class foo {
6
public:
7
foo();
8
foo(vector<int> v);
9
private:
10
vector<int> v;
11
T t;
12
};
13
14
template <typename T>
15
foo<T>::foo() :v(), t() {}
16
template <typename T=float>
17
foo<T>::foo(vector<int> v_) :v(v_), t() {} // { dg-error "" } default arg for member template
18
19
foo<float> a;