From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11872 invoked by alias); 30 Aug 2005 08:09:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 11726 invoked by uid 22791); 30 Aug 2005 08:09:08 -0000 Received: from ns2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 30 Aug 2005 08:09:08 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 5AD3F1B263; Tue, 30 Aug 2005 10:09:06 +0200 (CEST) Date: Tue, 30 Aug 2005 08:17:00 -0000 From: Richard Guenther To: Markus Bina Cc: gcc-bugs@gcc.gnu.org Subject: Re: g++; operator== Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2005-08/txt/msg03416.txt.bz2 List-Id: First of all, this mailinglist only tracks bugzilla (http://gcc.gnu.org/bugzilla) activity, so getting help this way is going to fail. Second, your testcase is invalid C++, to fix it, change operator== to bool operator== (const Int& i2) const { return (this->i == i2.i ? true : false); } as you cannot bind a temporary (which Int(2) is) to an lvalue reference. Your other compilers are wrong in accepting the code. Richard.