g++ 2.5.2 does not catch reference to local variable error.

Miles Bader miles@gnu.org
Thu Aug 4 10:39:00 GMT 2011


Jonathan Wakely <jwakely.gcc@gmail.com> writes:
> No, returning a reference to a local variable is always wrong, not
> only because Meyers says so.

True ... :}

-miles

-- 
Apologize, v. To lay the foundation for a future offense.



More information about the Gcc mailing list