This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18100] [3.4/4.0 regression] template member with same name as class not rejected
- From: "nathan at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Dec 2004 09:05:24 -0000
- Subject: [Bug c++/18100] [3.4/4.0 regression] template member with same name as class not rejected
- References: <20041021205738.18100.reichelt@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From nathan at codesourcery dot com 2004-12-08 09:05 -------
Subject: Re: [3.4/4.0 regression] template member with same
name as class not rejected
Mark Mitchell wrote:
> lerdsuwa at gcc dot gnu dot org wrote:
>
>> ------- Additional Comments From lerdsuwa at gcc dot gnu dot org
>> 2004-12-07 12:34 -------
>> Patch for 3.4 is submitted:
>> http://gcc.gnu.org/ml/gcc-patches/2004-12/msg00450.html
>
>
> (There is a typo in your test case; you meant "nested" instead of "ested".)
>
> That aside, I'm concerned that this fix might cause something else to
> break, and, given that the problem is only a missed diagnostic, I do not
> think that's a good tradeoff. Nathan, what do you think?
Does this allow templated ctors? If those are still permitted, I think
the patch is ok.
(IMO it would be simpler to check those things
that are allowed to have the same name, rather than all those that aren't.
That would not be a sensible 3.4 change though.)
nathan
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18100