This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21386] Inconsistent diagnostics for taking address of rvalue
- From: "benh at bwsint dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2005 16:05:00 -0000
- Subject: [Bug c++/21386] Inconsistent diagnostics for taking address of rvalue
- References: <20050504183050.21386.benh@bwsint.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From benh at bwsint dot com 2005-05-06 16:04 -------
(In reply to comment #1)
> (In reply to comment #0)
> > The first error message is also odd; "non-lvalue" is C terminology that is
> > rarely used in relation to C++.
>
> That is wrong because the standard actually uses lvalue and rvalue all the time.
Right, and it uses "rvalue" rather than "non-lvalue". So far as I can see, all
rvalues of user-defined type are temporaries, so there would be no loss of
precision in changing "temporary" to "rvalue" as well.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21386