This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/21672] Loses temporary in complex expression


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-19 23:21 -------
Here is another example where we don't know for sure it shows how the compiler uses operators in 
C++:
template<class T> const
 T& g(T t1, const T& t2) { return t1.h(t2); }

struct f{ f &h(const f&);};
f i;
f j;

f h = g(i , j);

h is the operator for |= and g is the operator for |.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21672


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]