[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:49:00 GMT 2005
Joseph S. Myers wrote:
>>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.
>
>
> The min/max expression extension is C++ only, the C front end doesn't have
> it.
Oh! That does make it simpler, and would seem to eliminate Joe's
objection regarding RMS' extensions.
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.
> (Removing the extension is separate from the question of whether MIN_EXPR
> and MAX_EXPR are useful parts of GENERIC to facilitate some
> optimizations.)
Indeed.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304
More information about the Gcc
mailing list