[Bug c++/26669] lost temporary

2006-03-13 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-03-13 21:50 --- Not a bug, you are returning a reference to a local variables in: friend const T& operator << (T t, const Arg& s) { return t <<= s; } friend const T& operator >> (T t, const Arg& s) { return t >>= s; } If yo

[Bug c++/26669] lost temporary

2006-03-13 Thread igodard at pacbell dot net
--- Comment #2 from igodard at pacbell dot net 2006-03-13 20:20 --- Created an attachment (id=11046) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11046&action=view) source code (compressed) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26669

[Bug c++/26669] lost temporary

2006-03-13 Thread igodard at pacbell dot net
--- Comment #1 from igodard at pacbell dot net 2006-03-13 20:19 --- Created an attachment (id=11045) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11045&action=view) compiler output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26669