Debian Codegraph @

gcc/testsuite/g++.dg/template/ctor7.C

raw
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 }