", states as follows:
Whoever, with the intention of wounding the feelings of any person, or of insulting the religion of any person, or with the knowledge that the feelings of any person are likely to be wounded, or that the religion of any person is likely to be insulted thereby,
commits any trespass in any place of worship or on any place of sculpture, or any place set apart from the performance of funeral rites or as a depository for the remains of the dead, or offers any indignity to any human corpse, or causes disturbance to any persons assembled for the performance of funeral ceremonies, shall be punished with imprisonment of either description for a term which may extend to one year, or with fine, or with both. Although sex with a corpse is not explicitly mentioned, a person who has sex with a corpse may be convicted under the above section. Section 377 of the Indian Penal Code can also be invoked. Philippines
There are no laws which explicitly prohibit sexual acts on corpses. The closest applicable law is the provision in the Revised Penal Code which only criminalizes "defamation to blacken the memory of one who is dead". There were at least efforts to introduce bills criminalizing sexual acts on corpses during the 15th Congress; one by which penalizes sexual acts of males of corpses of women, and another which covers sexual intercourse, anal sex, and oral sex done on corpses. Both proposals penalizes the act with fine and imprisonment.
Copulation with a dead female pilot whale by a captive male pilot whale has been observed, and possible sexual behaviour between two male humpback whales, one dead, has also been reported.In 1983, a male rock dove was observed to be copulating with the corpse of a dove that shortly before had its head crushed by a car. In 2001, a researcher laid out sand martin corpses to attract flocks of other sand martins. In each of six trials, 1–5 individuals from flocks of 50–500 were observed attempting to copulate with the dead sand martins. This occurred one to two months after the breeding season; since copulation outside the breeding season is uncommon among birds, the researcher speculated that the lack of resistance by the corpses stimulated the behaviour. Charles Brown observed at least ten cliff swallows attempt to copulate with a road-killed cliff swallow in the space of 15 minutes. He commented, "This isnt the first time Ive seen cliff swallows do this; the bright orange rump sticking up seems to be all the stimulus these birds need." Necrophilia has also been reported in the European swallow, grey-backed sparrow-lark, Starks lark, and the snow goose. A Norwegian television report showed a male hybrid between a black grouse and western capercaillie kill a male black grouse before attempting to copulate with it. In 2015, due to work done by the University of Washington, it was found that crows would commit necrophilia on dead crow corpses in about 4% of encounters with corpses.