Legall was Philidor's teacher and this position arose in the game Legall-St Bre, Paris 1750.
Don't let this happen to you!
White to move 1.e4 e5 2.Nf3 d6 3.Nc3 g6 4.Bc4 Bg4? 5.Nxe5! Bxd1? 6.Bxf7+ Ke7 7.Nd5#