From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27112 invoked by alias); 9 Sep 2002 22:56: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 27088 invoked by uid 71); 9 Sep 2002 22:56:01 -0000 Resent-Date: 9 Sep 2002 22:56:01 -0000 Resent-Message-ID: <20020909225601.27087.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, gdr@nerim.net Received: (qmail 16571 invoked by uid 61); 9 Sep 2002 22:46:50 -0000 Message-Id: <20020909224650.16570.qmail@sources.redhat.com> Date: Mon, 09 Sep 2002 15:56:00 -0000 From: gdr@nerim.net Reply-To: gdr@nerim.net To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/7874: g++ finds otherwise names otherwise invisible by ordinary name lookup X-SW-Source: 2002-09/txt/msg00162.txt.bz2 List-Id: >Number: 7874 >Category: c++ >Synopsis: g++ finds otherwise names otherwise invisible by ordinary name lookup >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: accepts-illegal >Submitter-Id: net >Arrival-Date: Mon Sep 09 15:56:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Gabriel Dos Reis >Release: All 3.x series >Organization: >Environment: Plateform independent >Description: Ordinary name lookup rules are wrongly implemented: g++ should not find, by ordinary name lookup rules, friend function names defined in class-definition and not declared in the enclosing namespace. This is a regression from 2.95.x >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="name-lookup1.C" Content-Disposition: inline; filename="name-lookup1.C" namespace N { template struct A { friend void f(A) { }; }; } int main() { N::A a; N::f(a); // ERROR }