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