[Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"

2013-09-06 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24702 --- Comment #10 from Jonathan Wakely --- I wouldn't hold your breath unfortunately. There are at least two opposing views on how to "fix" ADL within the standard committee and no consensus on what (if anything) should be done.

[Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"

2013-09-05 Thread pierhyth at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24702 --- Comment #9 from Mark Phillips --- Thanks Jonathan for the information on the updated standard and the rationale behind restricting Koenig to actual functions and function templates. In one way it is a bit of a pity - it does make functors sec

[Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"

2013-09-05 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24702 --- Comment #8 from Paolo Carlini --- Thanks Jon!

[Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"

2013-09-05 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24702 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"

2013-09-05 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24702 --- Comment #6 from Jonathan Wakely --- The standard says: When considering an associated namespace, the lookup is the same as the lookup performed when the associated namespace is used as a qualifier (3.4.3.2) except that: - [...] - [...] - All

[Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"

2013-09-05 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24702 Paolo Carlini changed: What|Removed |Added CC|gcc-bugs at gcc dot gnu.org| --- Comment #5 from Paolo Carlini

[Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"

2005-12-03 Thread gdr at gcc dot gnu dot org
--- Comment #4 from gdr at gcc dot gnu dot org 2005-12-04 05:09 --- this issue should be resolved one way of the other based on the core issue about argument dependent lookup specification, when a non-function is found. The "obvious" solution would be to do overload resolution based on

[Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"

2005-11-16 Thread gdr at integrable-solutions dot net
--- Comment #3 from gdr at integrable-solutions dot net 2005-11-16 19:28 --- Subject: Re: Koenig found functoid ref, but "cannot be used as a function" "pinskia at gcc dot gnu dot org" <[EMAIL PROTECTED]> writes: | Actually IIRC Koenig lookup only finds functions and not variables.

[Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"

2005-11-08 Thread pierhyth at gmail dot com
--- Comment #2 from pierhyth at gmail dot com 2005-11-09 01:33 --- The current C++ standard says that Koenig applies "when an unqualified name is used as the postfix-expression in a function call" which from what I've read, must include the case of functoids/functors and references to f

[Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"

2005-11-07 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2005-11-07 13:36 --- Actually IIRC Koenig lookup only finds functions and not variables. If that is the case we have two issues here. One is we accept invalid and another is that error message is wrong. Note ICC rejects this: t.cc(26)