function returning lvalue instead of rvalue
Gabriel Dos Reis
gdr@codesourcery.com
Mon Jul 17 22:04:00 GMT 2000
"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
More information about the Gcc-bugs
mailing list