From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4298 invoked by alias); 4 Jun 2002 20:46: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 4278 invoked by uid 71); 4 Jun 2002 20:46:01 -0000 Resent-Date: 4 Jun 2002 20:46:01 -0000 Resent-Message-ID: <20020604204601.4277.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, thomas@koeller.dyndns.org Received:(qmail 982 invoked from network); 4 Jun 2002 20:40:45 -0000 Received: from unknown (HELO mailout11.sul.t-online.com) (194.25.134.85) by sources.redhat.com with SMTP; 4 Jun 2002 20:40:45 -0000 Received: from fwd03.sul.t-online.de by mailout11.sul.t-online.com with smtp id 17FL6i-0007Zb-00; Tue, 04 Jun 2002 22:40:44 +0200 Received: from sarkovy.koeller.dyndns.org (520042739349-0001@[80.137.156.208]) by fmrl03.sul.t-online.com with esmtp id 17FL6N-0nFxAGC; Tue, 4 Jun 2002 22:40:23 +0200 Received: by sarkovy.koeller.dyndns.org (Postfix, from userid 500) id 8D03B12000C; Tue, 4 Jun 2002 22:40:04 +0200 (CEST) Message-Id:<20020604204004.8D03B12000C@sarkovy.koeller.dyndns.org> Date: Tue, 04 Jun 2002 13:46:00 -0000 From: thomas@koeller.dyndns.org To: gcc-gnats@gcc.gnu.org Cc: thomas@koeller.dyndns.org X-Send-Pr-Version:3.113 Subject: c++/6930: different behavior in 3.1 and 3.0.4 X-SW-Source: 2002-06/txt/msg00090.txt.bz2 List-Id: >Number: 6930 >Category: c++ >Synopsis: different behavior in 3.1 and 3.0.4 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Tue Jun 04 13:46:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Thomas Koeller >Release: 3.1 >Organization: >Environment: System: Linux sarkovy.koeller.dyndns.org 2.4.18 #3 Sam Mär 23 01:29:53 CET 2002 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: /home/thomas/src/gnu/gcc-3.1/configure --prefix=/opt/gcc-3.1 --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --with-system-zlib --enable-threads=posix >Description: The attached example program is accepted by gcc-3.0.4, but is rejected by gcc-3.1. >How-To-Repeat: Compile this example program: --- extern "C" void func(void); extern "C" void func(void) __attribute__((weak, alias("__func"))); void __func(void){} --- These are the results: bash-2.05a$ /opt/gcc-v3/bin/g++ -V 3.0.4 -fsyntax-only testprog.cxx bash-2.05a$ /opt/gcc-v3/bin/g++ -V 3.1 -fsyntax-only testprog.cxx testprog.cxx:2: `void func()' defined both normally and as an alias testprog.cxx:2: weak declaration of `void func()' must precede definition >Fix: >Release-Note: >Audit-Trail: >Unformatted: