This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug with Named Return Values in C++
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: Johny Cage <cage at ok dot ru>
- Cc: bug-gcc at gnu dot org
- Date: 21 Jul 2002 23:57:33 +0200
- Subject: Re: Bug with Named Return Values in C++
- Organization: CodeSourcery, LLC
- References: <10248028451.20020722013332@ok.ru>
Johny Cage <cage@ok.ru> writes:
| Hello bug-gcc,
|
| I write code that uses named return values
| (http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_5.html)
That is deprecated and now removed from g++ -- it is not what it
called Named Return Value in C++.
Since GCC-3.1, g++ implements the NRVO in the scope of Standard C++.
I would suggest you update your code (and compiler) to use standard syntax.
-- Gaby