Sort:  

In theory it's possible: when the black pawn is still on g7 the bishop moves to h7 and then g8. After that black plays g7-g6. That means we have a completely legal position which, however, of course didn't arise in a real game ...