From mboxrd@z Thu Jan 1 00:00:00 1970 From: rodrigc@gcc.gnu.org To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c++/40 Date: Mon, 28 May 2001 18:46:00 -0000 Message-id: <20010529014601.13671.qmail@sourceware.cygnus.com> X-SW-Source: 2001-05/msg00983.html List-Id: The following reply was made to PR c++/40; it has been noted by GNATS. From: rodrigc@gcc.gnu.org To: chrisb@sandy.force9.co.uk, rodrigc@gcc.gnu.org, 43170@bugs.debian.org, gcc-gnats@gcc.gnu.org, martin@loewis.home.cs.tu-berlin.de, nobody@gcc.gnu.org Cc: Subject: Re: c++/40 Date: 29 May 2001 01:44:40 -0000 Synopsis: Result naming doesn't work for functions defined in a class State-Changed-From-To: analyzed->closed State-Changed-By: rodrigc State-Changed-When: Mon May 28 18:44:40 2001 State-Changed-Why: Tested under gcc version 3.0 20010528 (prerelease) Your example uses the GCC named return value extension which i which is deprecated. Compiling your example yielded error messages like: a.cc: In member function `std::string foo::do_foo(const std::string&)': a.cc:15: warning: the named return value extension is deprecated, please see the documentation for details http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=40&database=gcc