This happened to a mate of mine a few months back.... Turned out to be some sort of gear selection/position sensor inside the gearbox
Similar symptoms as you've described with the gear indicator flashing - basically the car didn't know what gear it was in. His was a TDI Passat though with the stupid key fob thing that you push in to start the car...... His wouldn't start due to the fault