The felony-murder rule applies when a killing occurs, even if unintentional, during the commission or attempted commission of certain serious felonies such as robbery, rape, arson, burglary, or kidnapping. It also applies during immediate flight after committing the felony but not after the felon has reached a place of safety.
For example: If during a bank robbery a teller suffers a fatal heart attack due to stress, the robbers could be charged with felony murder.