Answer
During the filming of the 1979 pirate comedy movie Yellowbeard, Marty Feldman died of a heart attack at the age of 48. Feldman, who played the role of the pirate Yellowbeard, had a history of heart problems and had been experiencing chest pains during the filming of the movie. He died on the set of the movie in the Bahamas.