From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23636 invoked by alias); 5 Dec 2002 19:57:06 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 23617 invoked by uid 61); 5 Dec 2002 19:57:06 -0000 Date: Thu, 05 Dec 2002 11:57:00 -0000 Message-ID: <20021205195706.23616.qmail@sources.redhat.com> To: dhawkins@cdrgts.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, dhawkins@cdrgts.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/8827: operator<< within namespace shadows all operator<<'s in global namespace X-SW-Source: 2002-12/txt/msg00293.txt.bz2 List-Id: Synopsis: operator<< within namespace shadows all operator<<'s in global namespace State-Changed-From-To: open->closed State-Changed-By: bangerth State-Changed-When: Thu Dec 5 11:57:05 2002 State-Changed-Why: This is not a bug, but how Koenig lookup works. If there is nothing in the present namespace, then we look into the namespaces of the arguments of the operator, which triggers the message. There are a number of similar reports in the database. If you know which operator you want to call, then qualify it with the name of the namespace. Regards Wolfgang http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8827