fix Issue 9271 - Forwarding lambda predicate with type inference causes segfault