From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11925 invoked by alias); 7 Sep 2007 00:34:19 -0000 Received: (qmail 11851 invoked by uid 48); 7 Sep 2007 00:34:09 -0000 Date: Fri, 07 Sep 2007 00:34:00 -0000 Message-ID: <20070907003409.11850.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/26698] [4.0/4.1/4.2/4.3 Regression] g++ accepts const-incorrect code due to conversion function In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pcarlini at suse dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-09/txt/msg00525.txt.bz2 ------- Comment #7 from pcarlini at suse dot de 2007-09-07 00:34 ------- Now in mainline things are better: 26698.C: In member function ‘X::operator X&() const’: 26698.C:25: error: invalid initialization of reference of type ‘X&’ from expression of type ‘const X’ I'm not sure whether an error at line 28 is mandatory together with the above one. -- pcarlini at suse dot de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pcarlini at suse dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26698