Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
llvm-gcc-4.2
/
gcc
/
testsuite
/
g++.dg
/
parse
/
non-dependent3.C
blob: 9dfb99636a88c43441721be2ace3b3c745d4d107 [
file
] [
log
] [
blame
]
// PR c++/14586
enum
E
{
e
};
E
&
operator
|=
(
E
&
f1
,
const
E
&
f2
);
E
operator
|
(
const
E
&
f1
,
const
E
&
f2
)
{
E result
=
f1
;
result
|=
f2
;
return
result
;
}
template
<typename>
void
foo
()
{
const
E flags
=
e
|
e
;
}
template
void
foo
<double>
();