[Bug c++/19199] [3.3/3.4/4.0/4.1 Regression] Wrong warning about returning a reference to a temporary
Mark Mitchell
mark@codesourcery.com
Mon Mar 7 19:06:00 GMT 2005
Steven Bosscher wrote:
> On Monday 07 March 2005 19:49, Mark Mitchell wrote:
>
>>The way I think about this is that G++ has long supported the GNU
>>min/max expression extension -- and it's long been broken. Over the
>>years, I've fielded several bug reports about that extension, and we've
>>gradually cleaned it up, but mostly it's just been neglected.
>
> So, maybe the extension is not used very much. Perhaps it should be
> removed?
I don't think it's used very much. It doesn't buy you much brevity, and
in C++, you would generally use std::max/std::min anyhow.
I'd be happy to see it (deprecated and then) removed, but I think we'd
need buy-in from the C front end maintainers. As extensions go, it's
actually not that bad; the semantics are relatively well defined.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304
More information about the Gcc
mailing list