temporary object

Joe Buck jbuck@synopsys.com
Wed Aug 27 19:52:00 GMT 2003


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.



More information about the Gcc mailing list