fix issue 10329 - Attributes not inferred for indirectly templated
methods