2012/1/19 Jason Merrill <ja...@redhat.com>: > When we have a class-scope using-declaration that nominates functions, we > want to insert those functions into the derived class' CLASSTYPE_METHOD_VEC. > In non-template code we do this in handle_using_decl, which is called from > check_bases_and_members. But we don't call that function for a class > template definition. Previously, for templates we were inserting them from > finish_member_declaration, but that leads to name collisions if a function > with the same signature is declared after the using-declaration, as in this > testcase. So this patch delays inserting the used function until > finish_struct time, to match the non-template case.
Thanks for fixing it ! -- Fabien