This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PR c++/17805] limit operator overload candidates for enum operands
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 01 Mar 2005 23:24:01 -0300
- Subject: Re: [PR c++/17805] limit operator overload candidates for enum operands
- Organization: Red Hat Global Engineering Services Compiler Team
- References: <or3bw4nukq.fsf@livre.redhat.lsd.ic.unicamp.br>
On Feb 10, 2005, Alexandre Oliva <aoliva@redhat.com> wrote:
> We're a bit too lenient in creating the candidate list for overload
> resolution for expressions that use user-defined operator functions.
> This patch arranges for us to reject functions that don't get an exact
> match for at least one of the enum-typed arguments, if none of the
> arguments have class types.
> Regression-tested on x86_64-linux-gnu. Ok to install?
> Index: gcc/cp/ChangeLog
> from Alexandre Oliva <aoliva@redhat.com>
> PR c++/17805
> * call.c (build_new_op): Filter out operator functions that don't
> satisfy enum-conversion match requirements.
Ping?
http://gcc.gnu.org/ml/gcc-patches/2005-02/msg00453.html
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}