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: temporary object


On Wed, Aug 27, 2003 at 05:46:50PM +0000, He HongFu wrote:
> Hi, All
> 	Why I cannot compile it when I use a temporary object as an parameter of a reference.
> but MSC can compile it sucessfully.

This is a bug in MSC.  It's not legal to initialize a non-const reference
with a temporary object.


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