repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
template
/
crash39.C
blob
e4939755018c4f1f7e9049c0f7d7fb7ece6dd00a
1
// PR c++/22405
2
3
template <typename T> void foo(T &arg) { // { dg-error "declared" }
4
arg+=1;
5
}
6
7
template <typename T> void foo(T &arg) { // { dg-error "redefinition" }
8
arg+=2;
9
}
10
11
template void foo(float &arg); // { dg-bogus "" "" { xfail *-*-* } }