While there are several movies and miniseries that follow Anne and Gilbert's story after the original novel, Gilbert Blythe remains alive and well throughout all of them. He and Anne experience a lifetime of love and adventure together.
Perhaps you're thinking of a different character or a different adaptation? Please clarify if you have more details about the specific movie you're referring to.