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]
Other format: [Raw text]

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


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.


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