From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8391 invoked by alias); 2 May 2003 19:16: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 8344 invoked by uid 71); 2 May 2003 19:16:01 -0000 Date: Fri, 02 May 2003 19:16:00 -0000 Message-ID: <20030502191601.8342.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Giovanni Bajo" Subject: Re: c++/5293: [3.3/3.4 regression] [2003-04-30] confusing message when binding a temporary to a reference Reply-To: "Giovanni Bajo" X-SW-Source: 2003-05/txt/msg00152.txt.bz2 List-Id: The following reply was made to PR c++/5293; it has been noted by GNATS. From: "Giovanni Bajo" To: , , , , Cc: Subject: Re: c++/5293: [3.3/3.4 regression] [2003-04-30] confusing message when binding a temporary to a reference Date: Fri, 2 May 2003 21:13:52 +0200 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5293 Reconfirmed on 3.4 CVS 20030430 and 3.3 CVS 20030421: pr5293.cpp: In function `any_class& operator*=(any_class&, const any_class&) [with any_class = C1]': pr5293.cpp:25: instantiated from here pr5293.cpp:18: error: could not convert `C1::operator=(const C1&)((&C1::operator*(const C1&) const((+q))))' to `C1&' This is a regression wrt 2.95 which was emitting: pr5293.cpp: In function `class C1 & operator *=(C1 &, const C1 &)': pr5293.cpp:25: instantiated from here pr5293.cpp:18: initialization of non-const reference type `class C1 &' pr5293.cpp:18: from rvalue of type `C1' pr5293.cpp:18: warning: returning reference to temporary Giovanni Bajo