From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3609 invoked by alias); 12 Sep 2002 11:16:05 -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 3593 invoked by uid 71); 12 Sep 2002 11:16:03 -0000 Date: Thu, 12 Sep 2002 04:16:00 -0000 Message-ID: <20020912111603.3590.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Gabriel Dos Reis Subject: Re: c++/7884: code compiled with optimization flag causes segmentation violation Reply-To: Gabriel Dos Reis X-SW-Source: 2002-09/txt/msg00205.txt.bz2 List-Id: The following reply was made to PR c++/7884; it has been noted by GNATS. From: Gabriel Dos Reis To: arnez@de.ibm.com Cc: gcc-gnats@gcc.gnu.org Subject: Re: c++/7884: code compiled with optimization flag causes segmentation violation Date: 12 Sep 2002 13:03:44 +0200 arnez@de.ibm.com writes: | The following reply was made to PR c++/7884; it has been noted by GNATS. | | From: arnez@de.ibm.com | To: aloeff@de.ibm.com, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, | gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org | Cc: | Subject: Re: c++/7884: code compiled with optimization flag causes segmentation | violation | Date: Thu, 12 Sep 2002 10:44:10 +0200 | | I don't quite understand why (char *)foo is an rvalue. Because the C++ definition says so. | Using a cast as an lvalue is listed as one of GCC's extensions. That particular extension doesn't play well with the rest of the language and is causing more troubles than it solves any real problems. It may disappear in some future releases of GCC. -- Gaby