This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13626] [3.4 regression] rejects valid


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]