Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
;
}