fix Issue 10329 - Attributes not inferred for indirectly templated methods