This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: generalized lvalues
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Matt Austern <austern at apple dot com>
- Cc: gcc mailing list <gcc at gcc dot gnu dot org>
- Date: Wed, 17 Nov 2004 22:50:29 -0500
- Subject: Re: generalized lvalues
- References: <8AD5AEEF-3914-11D9-8BD2-000A95BCF344@apple.com>
On Nov 17, 2004, at 10:47 PM, Matt Austern wrote:
1. It broke valid C++ programs. If we overload a function on
constness, like foo(int&) and foo(const int&), then invoking it as
foo((int) x) is required to call the const version. Generalized
lvalues made us choose the latter.
If it broke it please file a bug and don't complain that we broke it.
-- Pinski