This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12183] defunctional operator lookup in templates within namespaces
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Sep 2003 14:52:01 -0000
- Subject: [Bug c++/12183] defunctional operator lookup in templates within namespaces
- References: <20030905122054.12183.rschiele@uni-mannheim.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12183
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From bangerth at dealii dot org 2003-09-05 14:51 -------
That's not how name lookup is supposed to work. It first looks for
a name in the present namespace and those of the arguments. Only
if nothing is found are names looked up in outer namespaces. In your
example, an operator< is found, so lookup stops. However, we then
realize that the only found function doesn't match the given
arguments.
W.