c++/3926: Trouble with namespaces

pme@gcc.gnu.org pme@gcc.gnu.org
Fri Aug 3 10:34:00 GMT 2001


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



More information about the Gcc-prs mailing list