Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr90982.C
blob: 8edbb7ca6c0693bf2ca3fdf4a1d3ed1d6546bd64 [
file
] [
log
] [
blame
]
// { dg-do compile }
template
<
int
n
>
struct
S
{
long
c
[
n
];
void
f
(
S d
)
{
for
(
int
i
=
2
;;
i
++)
c
[
i
]
&=
d
.
c
[
i
];
}
};
template
<
int
m
>
struct
T
:
S
<
m
/
64
>
{
void
operator
&=
(
T d
)
{
this
->
f
(
d
);
}
};
void
g
(
T
<
192
>
&
d
)
{
T
<
192
>
v
;
d
&=
v
;
}