From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9226 invoked by alias); 25 Apr 2002 15:16:04 -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 9190 invoked by uid 71); 25 Apr 2002 15:16:01 -0000 Resent-Date: 25 Apr 2002 15:16:01 -0000 Resent-Message-ID: <20020425151601.9189.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, green@redhat.com Received:(qmail 5445 invoked from network); 25 Apr 2002 15:08:45 -0000 Received: from unknown (HELO potter.sfbay.redhat.com) (205.180.83.107) by sources.redhat.com with SMTP; 25 Apr 2002 15:08:45 -0000 Received: from louie.sfbay.redhat.com (louie.sfbay.redhat.com [192.168.30.16]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g3PF7xv31340 for ; Thu, 25 Apr 2002 08:07:59 -0700 Received: (green@localhost) by louie.sfbay.redhat.com (8.11.6/8.6.4) id g3PF8Zh27772; Thu, 25 Apr 2002 08:08:35 -0700 Message-Id:<200204251508.g3PF8Zh27772@louie.sfbay.redhat.com> Date: Thu, 25 Apr 2002 08:16:00 -0000 From: green@redhat.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:3.113 Subject: c++/6453: g++ regression in 3.1 X-SW-Source: 2002-04/txt/msg01339.txt.bz2 List-Id: >Number: 6453 >Category: c++ >Synopsis: g++ regression in 3.1 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Thu Apr 25 08:16:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Anthony Green >Release: 3.1 20020424 (prerelease) >Organization: >Environment: System: Linux louie 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: /louie/green/3.1/gcc/configure --prefix=/louie/green/3.1/i --enable-threads --enable-languages=c,c++,java : (reconfigured) : (reconfigured) >Description: Given the following nonsense code... void *foo() { char x[100]; x++; return (void *) x; } Red Hat's g++ 2.96 reports: $ g++ -c c.cc c.cc: In function `void *foo ()': c.cc:4: non-lvalue in increment c.cc:3: warning: address of local variable `x' returned Unfortunately I don't have an older FSF release handy to test on (like 2.95, or 3.0), so I don't know what they do. However, the current 3.1 branch says: $ g++ -c c.cc non-lvalue in increment address of local variable ` Internal compiler error: Error reporting routines re-entered. Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >How-To-Repeat: Compile the following with g++: void *foo() { char x[100]; x++; return (void *) x; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: