Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
recursion2.C
blob: 47dd5522d0ac98fe1e941c571cd720fd698f96f8 [
file
] [
log
] [
blame
]
// { dg-do run }
template
<
int
i
>
struct
T
:
public
T
<
i
-
1
>
{
};
template
<>
struct
T
<
0
>
{
};
template
<
class
F
>
struct
T1
:
public
T
<
F
::
dim
>
{
};
template
<
int
i
>
struct
S
{
enum
{
dim
=
i
}
;
};
int
main
()
{
T1
<
S
<
4
>
>
t
;
return
(
0
)
;
}