From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31558 invoked by alias); 7 Nov 2002 06:06: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 31539 invoked by uid 71); 7 Nov 2002 06:06:01 -0000 Resent-Date: 7 Nov 2002 06:06:01 -0000 Resent-Message-ID: <20021107060601.31538.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, mrnobo1024@yahoo.com Received: (qmail 30982 invoked by uid 61); 7 Nov 2002 06:04:04 -0000 Message-Id: <20021107060404.30981.qmail@sources.redhat.com> Date: Wed, 06 Nov 2002 22:06:00 -0000 From: mrnobo1024@yahoo.com Reply-To: mrnobo1024@yahoo.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/8488: invalid reference cast being accepted with -pedantic on X-SW-Source: 2002-11/txt/msg00356.txt.bz2 List-Id: >Number: 8488 >Category: c++ >Synopsis: invalid reference cast being accepted with -pedantic on >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: accepts-illegal >Submitter-Id: net >Arrival-Date: Wed Nov 06 22:06:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: mrnobo1024@yahoo.com >Release: unknown-1.0 >Organization: >Environment: Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 -- target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=f77,c++,o bjc,ada --disable-win32-registry --disable-shared Thread model: win32 gcc version 3.2 (mingw special 20020817-1) >Description: "(int &)3 = 2;" gives the fatal error "conversion to non-const reference type `int&' from rvalue of type `int'" normally, but with -pedantic, it becomes a warning and compilation continues. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: