This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: function returning lvalue instead of rvalue
- To: "Simpson, Kenneth S" <kenneth dot s dot simpson at intel dot com>
- Subject: Re: function returning lvalue instead of rvalue
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 18 Jul 2000 07:04:12 +0200
- Cc: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Organization: CodeSourcery, LLC
- References: <9678C2B4D848D41187450090276D1FAE391A68@FMSMSX32>
"Simpson, Kenneth S" <kenneth.s.simpson@intel.com> writes:
| Hi,
| The following program demonstrates either a bug in gcc or a misconception
| of mine.
|
| I believe that case 1 should fail in exactly the same way as case 3,
| meaning that the string returned from the function is not an lvalue.
No, objects of class-type are specila in that you may invoke non
member functions on them.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com