This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug with Named Return Values in C++


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]