From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25140 invoked by alias); 8 Apr 2002 14:26:01 -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 25066 invoked by uid 71); 8 Apr 2002 14:26:00 -0000 Resent-Date: 8 Apr 2002 14:26:00 -0000 Resent-Message-ID: <20020408142600.25065.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, peter.klotz@aon.at Received:(qmail 28178 invoked by uid 61); 8 Apr 2002 14:22:38 -0000 Message-Id:<20020408142238.28177.qmail@sources.redhat.com> Date: Mon, 08 Apr 2002 07:26:00 -0000 From: peter.klotz@aon.at Reply-To: peter.klotz@aon.at To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/6229: gcc 3.1 namespace lookup seems to fail X-SW-Source: 2002-04/txt/msg00479.txt.bz2 List-Id: >Number: 6229 >Category: c++ >Synopsis: gcc 3.1 namespace lookup seems to fail >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Apr 08 07:26:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: peter.klotz@aon.at >Release: gcc 3.1 Snapshot >Organization: >Environment: Red Hat Linux 7.2 / i386 >Description: Uncomment '#define TWO_INSERTERS' in the attached program and everything compiles and runs fine ('manipulator called' is written twice as output). If the program is compiled as is one obtains the warning manipulator.cpp: In function `void ns::f()': manipulator.cpp:29: warning: the address of `void ns::manipulator(std::ostringstream&)', will always be `true' The program writes 'manipulator called' only once. Obviously a wrong inserter gets called, simply by adding an inserter with a non matching signature. Neither gcc 2.95.3, Borland C++ 5.5.1 nor Comeau 4.3Beta show this behavior. I have already reported this issue to Red Hat since it is their gcc 3.1-0.23.1 snapshot I am using but got no answer so far. >How-To-Repeat: g++ -W -Wall manipulator.cpp -o manipulator ./manipulator >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/x-gzip; name="manipulator.tgz"; name="manipulator.tgz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="manipulator.tgz" H4sIANmksTwAA+3Sz0vDMBQH8F4d9H94bCCtiLZb52CW3Tx4UXADj6O0qQS7tDTpQMX/3aTruh9M L7J58Pu5lL685L08sogEL6osUnl5FReFdQye73mjILA8bXQzar6rf833+wNLJwwHw34QmDw/CPyR Rd5RutlTSRWVRFbxmuXq/fu8hC1ZlheslKfo6mR6XMRZlTAKeS5VyaLFxO5sgrKN6WjCUi4YzZ4f 5/cP07un2d3T1Cwsc56QGY15RWHoSJWMx81p5yQvqU5wLlJ3s8TFS5Pgunbnw+6QljrJm4gWPJ7H kVThgeSJI1331u58mro6lckiihkJSR9tJ4vNkz5Yry1XL8Z5pSgMqbu1jeIoy1jSNfE6iYkkW1ft 8VQPYn8Ku3f+aRhcqFULZyVTVSlIrk7u6SI8bW+ROnuN7tyi3lQvmR6FHI+32l93+knX19QOyUR0 bT0eLn51tlkyUd1h89dcxFsV/usnDQAAAAAAAAAAAAAAAAAAAADwb3wBHZETJwAoAAA=