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]

Re: Named Return Value Extension Proposal


Mike Stump wrote:

> Sounds great, but I missed the proof where you showed
> the compiler can't figure this out for itself.  :-(
> I instead favor having the compile do the hard work,
> and not require having the user try and code
> in something besides ANSI C++ in this case.

It can!
But the compiler must have already read the return statement
before it emits the code to construct x
which is something that the egcs compiler does not do.

E. Robert Tisdale <edwin@netwood.net>




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