From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28715 invoked by alias); 9 Sep 2002 20:26:01 -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 28695 invoked by uid 71); 9 Sep 2002 20:26:01 -0000 Date: Mon, 09 Sep 2002 13:26:00 -0000 Message-ID: <20020909202601.28688.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Andrew Pinski Subject: Re: c++/7858: g++ rejects legal code (regression from gcc 3.*) Reply-To: Andrew Pinski X-SW-Source: 2002-09/txt/msg00155.txt.bz2 List-Id: The following reply was made to PR c++/7858; it has been noted by GNATS. From: Andrew Pinski To: Peter Schmid Cc: Paolo Carlini , , , , Subject: Re: c++/7858: g++ rejects legal code (regression from gcc 3.*) Date: Mon, 9 Sep 2002 16:23:53 -0400 Here is more information on why this is invalid code: According to the ARM (2nd edition) r.5.4, "The result of a cast to a reference type is an lvalue; the results of the other casts are not." Thanks, Andrew Pinski