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
Merge from mainline
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
ttp36.C
blob
2836e8abeabd1073b2b926aec9511b01ecbea1f7
1
// { dg-do run }
2
template<int T, class U = int> class D
3
{
4
public:
5
int f();
6
};
7
8
template<int T, class U> int D<T,U>::f()
9
{
10
return T+sizeof(U);
11
}
12
13
template<template<int> class D,class E> class C
14
{
15
D<1> d;
16
public:
17
int f() { return d.f(); }
18
};
19
20
template<template<int> class D> int f(D<1> &d1)
21
{
22
d1.f();
23
return 0;
24
}
25
26
int main()
27
{
28
D<1> c1;
29
f(c1);
30
}