This question already has an answer here:

Recent tragedy in NY, young haredi couple killed in auto accident. Wife pregnant with baby boy. Doctors delivered the baby but, tragically, he also didn't survive. Before burial, a brit milah was performed on the dead infant. What, if any, is the halachic basis for this?

merged by Double AA Mar 6 '13 at 22:50

This question was merged with Why is a bris performed after death? because it is an exact duplicate of that question.