This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
named return value extension
- To: gcc at gcc dot gnu dot org
- Subject: named return value extension
- From: Carlo Wood <carlo at alinoe dot com>
- Date: Tue, 14 Nov 2000 19:30:25 +0100
Hi, after having upgraded to 2.97 (2.96 also started to crash on me)
I suddenly get the following warning on libcwd:
cc1plus: warnings being treated as errors
../../../libcw/src/libcwd/bfd.cc: In function `string full_path_to_executable()':
../../../libcw/src/libcwd/bfd.cc:502: warning: the named return value extension is deprecated.
../../../libcw/src/libcwd/bfd.cc:502: warning: Please see the documentation for details.
However, in the documentation - the only reference I could find is:
/usr/local/gcc/info>grep 'named return' gcc*
gcc.info-14: The named return value extension has been deprecated, and will be
Where the paragraph at hand says:
In the past, the GNU C++ compiler was extended to experiment with new
features, at a time when the C++ language was still evolving. Now that
the C++ standard is complete, some of those features are superseded by
superior alternatives.
...
The named return value extension has been deprecated, and will be
removed from g++ at some point.
No details whatsoever :(
Can someone tell me what the "superior alternative" is for
the named return value extension?
Thanks,
--
Carlo Wood <carlo@alinoe.com> -=- Jesus Loves you -=-