From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6353 invoked by alias); 10 Jan 2004 12:56:03 -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 6345 invoked by alias); 10 Jan 2004 12:56:02 -0000 Date: Sat, 10 Jan 2004 12:56:00 -0000 Message-ID: <20040110125602.6344.qmail@sources.redhat.com> From: "rguenth at tat dot physik dot uni-tuebingen dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040109102738.13626.rguenth@tat.physik.uni-tuebingen.de> References: <20040109102738.13626.rguenth@tat.physik.uni-tuebingen.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13626] [3.4 regression] rejects valid X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg00910.txt.bz2 List-Id: ------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de 2004-01-10 12:55 ------- Subject: Re: [3.4 regression] rejects valid On Sat, 10 Jan 2004, giovannibajo at libero dot it wrote: > > ------- Additional Comments From giovannibajo at libero dot it 2004-01-10 11:18 ------- > Richard, > > the code looks invalid to me. In the member initializer list of the copy > construct you have: > > face_m(model.face) > > with: > > int face_m; > int face() const { return face_m; } > > So, it looks like that you actually wanted to say face_m(model.face()) or face_m > (model.face_m). GCC is right. Doh, you are right. Odd, previous gcc 3.4 accepted it, as still does current gcc 3.3 and even Intel icpc in -ansi mode... Can you change the bug to say accepts-invalid for 3.3 then? Thanks, Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13626