I know that when I've worked at jobs which weren't all about focusing on abstract problems (such as an analyst or a consultant or a project manager), I could definitely put in more hours.
EDIT: Also, air traffic controllers (a job that I feel is more similar to programming than being a doctor) are restricted by law to work no more than 6 hours. From what they say, after their shift is done, their brain is often completely fried.
However, IMO, when working on a large code base which you didn't author (so, pretty much the most typical case), if you want to do a good job - i.e. think through potential consequences of your changes, weight the pros and cons of alternative approaches etc. - you still need a ton of cognitive resources.
There's no way those 100 hour weeks and 36 hours shifts don't lead to a measurable increase in errors. Given that in medicine, errors can cost lives, it's morally reprehensible that anyone allows this kind of thing to go on in medicine today as a matter of course (outside of a true one-off emergency)
http://healthland.time.com/2013/03/26/fewer-hours-for-doctor...
I seem to recall surgery being an exception in that shorter shifts lead to more patients dying but I can't find anything quickly.