The Supreme Court has referred to its constitution bench the matter pertaining to a ban on the entry of women into Kerala's historic Sabarimala temple.