From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15586 invoked by alias); 6 Jul 2002 16:26: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 15543 invoked by uid 71); 6 Jul 2002 16:26:00 -0000 Resent-Date: 6 Jul 2002 16:26:00 -0000 Resent-Message-ID: <20020706162600.15542.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, mark@codesourcery.com Resent-Reply-To: gcc-gnats@gcc.gnu.org, aoliva@redhat.com Received: (qmail 14037 invoked by uid 61); 6 Jul 2002 16:22:27 -0000 Message-Id: <20020706162227.14036.qmail@sources.redhat.com> Date: Sat, 06 Jul 2002 09:26:00 -0000 From: aoliva@redhat.com Reply-To: aoliva@redhat.com To: gcc-gnats@gcc.gnu.org Cc: mark@codesourcery.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: mark@codesourcery.com Subject: c++/7221: wrong linkage in member functions of typedef-named classes X-SW-Source: 2002-07/txt/msg00224.txt.bz2 List-Id: >Number: 7221 >Category: c++ >Synopsis: wrong linkage in member functions of typedef-named classes >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sat Jul 06 09:26:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: aoliva@redhat.com >Release: gcc-3.1, as well as many (all?) older releases and newer snapshots >Organization: >Environment: any >Description: Given: typedef struct { void f(); } S; GCC will assume f has no linkage, because at the point of the declaration, the class is anonymous. Details at http://gcc.gnu.org/ml/gcc-patches/2002-07/threads.html#00266 >How-To-Repeat: Testcase is g++.old-deja/g++.oliva/linkage1.C >Fix: >Release-Note: >Audit-Trail: >Unformatted: