g++.old-deja/g++.mike/p7325.C - suspected bogus test case
Mike Stump
mrs@apple.com
Tue Jun 29 14:18:00 GMT 2004
On Saturday, June 26, 2004, at 11:25 AM, Mark Mitchell wrote:
> Why do you expect that? Independently of whether or not their
> addresses have been taken, the language says these temporaries go away
> at a particular point.
Bingo. And because they go away, any attempt by the user code to
extend them should result in a warning saying that the address escapes
the objects lifetime. (If you like warnings of that sort from the
optimizer.)
More information about the Gcc
mailing list