This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13626] [3.4 regression] rejects valid
- From: "rguenth at tat dot physik dot uni-tuebingen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jan 2004 12:56:02 -0000
- Subject: [Bug c++/13626] [3.4 regression] rejects valid
- References: <20040109102738.13626.rguenth@tat.physik.uni-tuebingen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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