This is the mail archive of the gcc@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]

named return value extension


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 -=-

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