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
/
init
/
new9.C
blob
6729d76fd00cb420461ea4f2e3a3fa66ae4e7890
1
// PR 12337
2
3
class A {};
4
5
template <typename T>
6
class X : public A {
7
public:
8
X(T&);
9
};
10
11
class B {
12
public:
13
bool foo(A*);
14
template <typename T>
15
bool foo(T& t) { return foo(new X<T>(t)); }
16
};
17
18
int main()
19
{
20
B x, y;
21
x.foo(y);
22
}