1 // PR c++/84364
2 // { dg-do compile }
3 // { dg-options "-Weffc++" }
4 
5 template <typename T>
6 struct A {
7   A &operator=(A<T>& f) {
8     return *this;	// { dg-bogus "should return a reference to" }
9   }
10 };
11