From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15740 invoked by alias); 17 Apr 2003 08:06:02 -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 15720 invoked by uid 71); 17 Apr 2003 08:06:01 -0000 Resent-Date: 17 Apr 2003 08:06:01 -0000 Resent-Message-ID: <20030417080601.15719.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, frank.schmitt@4sc.com Received: (qmail 14657 invoked by uid 48); 17 Apr 2003 08:02:10 -0000 Message-Id: <20030417080210.14656.qmail@sources.redhat.com> Date: Thu, 17 Apr 2003 08:06:00 -0000 From: frank.schmitt@4sc.com Reply-To: frank.schmitt@4sc.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/10425: function index should not live in the global namespace X-SW-Source: 2003-04/txt/msg00795.txt.bz2 List-Id: >Number: 10425 >Category: c++ >Synopsis: function index should not live in the global namespace >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Apr 17 08:06:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Frank Schmitt >Release: 3.0.4, 3.1.1, 3.2.1 (not 2.96) >Organization: >Environment: RedHat Linux 7.3, glibc-2.2.5-34, gcc 3.2.1 >Description: gcc fails to compile a class named index if iostream is included >How-To-Repeat: /* gccbug3.cpp * * compile with -Wall -ansi -pedantic * @author Frank Schmitt (frank.schmitt@4sc.com) */ #include class index { }; int main() { index i; } >Fix: disable char *index(const char *s, int c); in string.h if compiled in strict ansi mode (probably rindex, as well) >Release-Note: >Audit-Trail: >Unformatted: