Capital punishment is constitutionally banned in Ireland, while discrimination based on age, gender, sexual orientation, marital or familial status, religion, race or membership of the travelling community is illegal. The legislation which outlawed homosexual acts was repealed in 1993. The Civil Partnership and Certain Rights and Obligations of Cohabitants Act 2010 permitted civil partnerships between same-sex couples. The Children and Family Relationships Act 2015 allowed for adoption rights for couples other than married couples, including civil partners and cohabitants, and provided for donor-assisted human reproduction; however, significant sections of the Act have yet to be commenced. Following a referendum held on 23 May 2015, Ireland became the eighteenth country to provide in law for same-sex marriage, and the first to do so in a popular vote.