[Bug c++/19199] [3.3/3.4/4.0/4.1 Regression] Wrong warning about returning a reference to a temporary
Nathan Sidwell
nathan@codesourcery.com
Sun Mar 13 19:22:00 GMT 2005
Mark Mitchell wrote:
> Jason Merrill wrote:
>
>> On Mon, 07 Mar 2005 11:49:05 -0800, Mark Mitchell
>> <mark@codesourcery.com> wrote:
>>
>>
>>> IMO, if these are C++-only, it's relatively easy to deprecate these
>>> extension -- but I'd like to hear from Jason and Nathan, and also the
>>> user
>>> community before we do that. Of all the extensions we've had, this one
>>> really hasn't been that problematic.
>> I agree it hasn't been problematic. I suspect that part of the reason
>> for
>> that is that it hasn't been used. I would not object to deprecating the
>> syntax extension.
> Nathan, what say you? I think that if you're in agreement, we can go
> ahead and deprecate this extension.
I suspect it's not used much -- I remember being surprised when I realized
we had it at the syntax level. I don't find '<?' and '>?' to be particularly
mnemonic. Using <? as an lvalue is wierd in the
same way ?: is -- and I know that has been tricky to get right in a number
of cases. I have no great love of it.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
More information about the Gcc
mailing list