Offside status is measured by the second last opponent (and a few other things). The goal keeper is an opponent. In your description, the goal keeper becomes the second last opponent.
This occurred recently in the FIFA World Cup 2010 opening match of South Africa vs. Mexico. The SA goal keeper stepped up to punch at the ball, causing the Mexican attacker to be in an offside position.
Chat with our AI personalities