This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3926: Trouble with namespaces
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, reichelt at igpm dot rwth-aachen dot de
- Subject: Re: c++/3926: Trouble with namespaces
- From: pme at gcc dot gnu dot org
- Date: 3 Aug 2001 17:34:38 -0000
Synopsis: Trouble with namespaces
State-Changed-From-To: open->closed
State-Changed-By: pme
State-Changed-When: Fri Aug 3 10:34:38 2001
State-Changed-Why:
Thank you for your bug report.
Not only is this /not/ a bug in the compiler, the example
you give is almost identical to the one given in the ISO
C++ standard, when they explain why such code must work
this way.
This is called argument-dependant name lookup, or "Koenig
lookup," described in [3.4.2]. The code you gave is
almost an exact duplicate of the example in [3.4.2]/2.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3926&database=gcc