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