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
Update ChangeLog and version files for release
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
ctor7.C
blob
ee65172fe75b2384e3ff51dde5946dba3075f3da
1
// PR c++/27640
2
3
template < class T > struct refcounted :
4
virtual T
5
{
6
template < class A1 > refcounted (const A1 & a1) : T () { }
7
};
8
struct nfsserv {};
9
template < class T >
10
void
11
sfsserver_cache_alloc (int *ns)
12
{
13
new refcounted < nfsserv > (*ns);
14
}
15
void
16
usage ()
17
{
18
sfsserver_cache_alloc < int > ( 0);
19
}