From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24999 invoked by alias); 11 Nov 2002 17:50:55 -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 24969 invoked by uid 61); 11 Nov 2002 17:50:54 -0000 Date: Mon, 11 Nov 2002 09:50:00 -0000 Message-ID: <20021111175054.24968.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, j.tevessen@gmx.net, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, j.tevessen@gmx.net, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: libstdc++/8529: wontcompile copy() of map to ostream_iterator X-SW-Source: 2002-11/txt/msg00536.txt.bz2 List-Id: Synopsis: wontcompile copy() of map to ostream_iterator State-Changed-From-To: open->closed State-Changed-By: bangerth State-Changed-When: Mon Nov 11 09:50:53 2002 State-Changed-Why: Your op<< is in the global namespace, but at the place where it is used (inside std::copy and the ostream_iterator), only operators in namespace std are looked up because both operands are in namespace std. There are several other instances of this bug/feature in the database. You can work around the problem by putting the op<< into namespace std. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8529