Barry Manilow and Suzanne Somers

As morbid as it sounds, Barry Manilow can rest easy knowing that when he dies, he could go out in style. That's because he and his best friend, Suzanne Somers, made a pact to produce each other's funerals ... or at least one will for "whoever goes first."

On Wednesday's The Talk, the ladies and guest host Somers sat down with Manilow, who was promoting his new album, "15 Minutes." The BFFs revealed that they had once attended the same funeral, which was badly produced.

Check out the rest of today's news

"We said somebody should plan our funerals when we go, so we made a deal that if I go first she'll plan my funeral, and if she goes first I'll produce hers," Manilow said.

In less gruesome Manilow news, the legendary musician also told Access Hollywood that his new album, available Tuesday, was inspired by Britney Spears' trouble with the paparazzi. He also noted he's inspired by Lady Gaga ("She's just fantastic.") and revealed that he'd love to work with Sting ("If I had one guy to choose, he would be the one.").

Check out Manilow's appearance on The Talk:

Fanilows, weigh in on the funeral arrangements. Which celeb do you want to live longer, given their pact?