From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19696 invoked by alias); 21 Mar 2003 00: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 19663 invoked by uid 71); 21 Mar 2003 00:26:00 -0000 Resent-Date: 21 Mar 2003 00:26:00 -0000 Resent-Message-ID: <20030321002600.19662.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, jlawson-gcc@bovine.net Received: (qmail 17725 invoked by uid 48); 21 Mar 2003 00:23:21 -0000 Message-Id: <20030321002321.17724.qmail@sources.redhat.com> Date: Fri, 21 Mar 2003 00:26:00 -0000 From: jlawson-gcc@bovine.net Reply-To: jlawson-gcc@bovine.net To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/10174: g++ wrongly assumes a namespace of a function based on the namespace of the function's argument X-SW-Source: 2003-03/txt/msg01355.txt.bz2 List-Id: >Number: 10174 >Category: c++ >Synopsis: g++ wrongly assumes a namespace of a function based on the namespace of the function's argument >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: accepts-illegal >Submitter-Id: net >Arrival-Date: Fri Mar 21 00:26:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: jlawson-gcc@bovine.net >Release: g++ (GCC) 3.2 >Organization: >Environment: Linux redhat 7.2, (Red Hat Linux Rawhide g++ 3.2-1) >Description: g++ compiles the attached example, even though I don't think the compiler should assume the scope of the bork() function. g++ does not assume the scope of the function if it does not take an argument that also a member of that namespace. >How-To-Repeat: g++ testnamespace.cpp >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="testnamespace.cpp" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="testnamespace.cpp" bmFtZXNwYWNlIG1vbyB7CiAgICBzdHJ1Y3QgY293IHsKICAgICAgICBpbnQgYXNkZjsKICAgIH07 CiAgICAKICAgIHZvaWQgYm9yayhtb286OmNvdywgaW50IGkpIHt9Cn0KCnZvaWQgZG9pdCgpCnsK ICAgIG1vbzo6Y293IHZhcjsKICAgIHZhci5hc2RmID0gMTsKCiAgICBib3JrKHZhciwgMSk7IC8v IHNob3VsZCByZXF1aXJlIG1vbzo6Ym9yayh2YXIpCn0K