This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Bug c++/19199] [3.3/3.4/4.0/4.1 Regression] Wrong warning aboutreturning a reference to a temporary


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]