The funnyman developed a cancerous facial tumour several months ago, according to a GoFundMe page set up to help him pay his medical bills.

An update on the page announced his death on Wednesday (02Nov16). It read, "Dearest Friends, we lost our dear Max this evening. He passed away in the hospital. Your donations and love were incredible in helping him feel loved and supported while he bravely fought for his life. The money will be applied to his bills and funeral."

Max, who starred in the 1999 biopic of fellow comic Andy Kaufman, Man on the Moon, and the hit 2008 comedy Forgetting Sarah Marshall, had been left debilitated by chemotherapy but was being treated in a New York City rehabilitation centre.

His final role was in Amy Schumer's comedy Trainwreck.

Elayne Boosler, a fellow stand-up comic who set up his GoFundMe page wrote, "Comedy has just lost one of the greatest ever, Max Alexander. The world has lost a true gentleman & its kindest soul. RIP my friend."

At the time of Max's death, the appeal to help him fund his medical bills had raised more than $52,000 (£42,000).