Hi
This patch fixes the regression PR17154. In lookup_field_1,
we have a code to deal with USING_DECL's specially and return
them in case of using-declaration in class template. Those names
cannot be found otherwise because they are member functions/member
data of dependent base.
However we forget to deal similar situation in class template
partial specialization. The result is the name is ignored and become
invisible during parsing. This is fixed by the attached patch.
Only the test !TREE_TYPE (field) is used there since it can deal
with names from dependent base directly. For non-dependent USING_DECL,
the usual FUNCTION_DECL, etc. are returned.
Tested on i686-pc-linux-gnu. OK for mainline?