test for #1635: Invoking ambiguous overloaded declarations