Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
effc4.C
blob: 2ce79280104679baa90745b5cf57ff04c16385c2 [
file
] [
log
] [
blame
]
// PR c++/84364
// { dg-do compile }
// { dg-options "-Weffc++" }
template
<
typename
T
>
struct
A
{
A
&
operator
=(
A
<
T
>&
f
)
{
return
*
this
;
// { dg-bogus "should return a reference to" }
}
};