This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21672] Loses temporary in complex expression
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 May 2005 00:15:35 -0000
- Subject: [Bug c++/21672] Loses temporary in complex expression
- References: <20050519212022.21672.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2005-05-20 00:15 -------
Subject: Re: Loses temporary in complex expression
"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| (In reply to comment #9)
| > And we can construct more. But it does not rule out the fact that we
| > should handle the simple cases.
|
| What assuming |= returns *this, that is just wrong and you know it,
I can't parse that.
| if the compiler assumes that, then we will get false warnings for
| places which don't return a reference to a temporary variable.
Since you're crediting me of knowing something (I don't know exactly
what :-)) you must also credit me of not wanting false warnings.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21672