[Bug c++/19199] [3.3/3.4/4.0/4.1 Regression] Wrong warning about returning a reference to a temporary

aoliva at redhat dot com gcc-bugzilla@gcc.gnu.org
Mon Mar 7 03:28:00 GMT 2005


------- Additional Comments From aoliva at gcc dot gnu dot org  2005-03-07 03:28 -------
Subject: Re: [PR c++/19199] don't turn cond_expr lvalue into min_expr rvalue (continued from PR c++/20280)

On Mar  5, 2005, Mark Mitchell <mark@codesourcery.com> wrote:

> Roger has objected to this change in the past.  As I noted in the
> audit trail for 19199, there's stuff in build_modify_expr to handle
> MIN_EXPR/MAX_EXPR as lvalues

Problem is, with the transformation performed by fold, it's no longer
an lvalue, and forcing it back into an lvalue just because it looks
like it should be one could break other programs.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19199



More information about the Gcc-bugs mailing list