LGBT activists have found hope in a series of observations by the Supreme Court, one of which held, "Section 377 is the infrastructure for denying rights. Once it falls, other rights will be realized".

Earlier today, the government -- which earlier upheld the gay sex law -- left it to the court to decide whether the 150-year-old law banning gay sex will remain and whether it is constitutionally valid. The change in stand came after a landmark Supreme Court order on the Right To Privacy, in which the court said the law can't "trample or curtail" the constitutional right to life and liberty.

The government's affidavit said if the court declares "Section 377 viz. 'consensual acts of adults in private', to be unconstitutional" the government will not go into any other issue. "The Supreme Court should not rule on any other issue as it could have far reaching consequences for future," said government's lawyer Tushar Mehta.

Chief Justice of India Dipak Misra, who is leading a five-judge constitution bench hearing the case, said, "We will only decide on the challenge to Section 377 and what civil rights follow, will be decided later".

"If there are service conditions prohibiting LGBT and transgender people in services it will go once we hold Section 377 unconstitutional... This will help awakening in the society and help LGBT community will be able to live life to the fullest," CJI Misra added.

Justice J Chandrachud, who is part of the bench, said, "We don't want a situation where two homosexuals enjoying a walk on Marine Drive should be disturbed by the police and charged under Section 377".

The Centre submitted its affidavit, stating its stand on the issue, on the second day of the hearing in the case. Yesterday, the bench said it would only examine the "correctness" of its verdict of 2013, which cancelled a Delhi High Court judgment that declared criminalizing gay sex between consenting adults was "unconstitutional".

Five years later, in January this year, the top court decided to take a fresh look into the issue after a bunch of petitions calling for it piled up.

Under Section 377 of the Indian Penal Code, sex "against the order of nature" draws a jail term and a fine. While prosecutions under it has been rare, activists say the police use the law to harass members of the LGBT community.