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: [C++ Patch] 28705 & koenig lookup


Nathan Sidwell <nathan@codesourcery.com> writes:


[...]

| This patch changes G++ to ignore non-function non-variable entities
| during koenig lookup.  This makes G++ accept strictly more programs
| than it did before. I don't think it causes G++ to reject a program it
| previously accepted.

This touches the area we are actively discussing.  One of the thinking
is that name lookup should apply uniformly.  We are working on a
proposal to move the issue forward.  In particular, we definitely
wouold like to see function objects found as you point out below.  In
addition, we would like to see  constructors added to the overload set
(that implies having types too).

| It does not make G++ match EDG's behaviour exactly, because G++
| accepts function objects during koenig lookup.  I don't want to change
| that behaviour without a ruling on DR 218 from the committee.

agreed.  Could we hold off a it and put this in suspended state?
Would be be at Portland?

-- Gaby


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