Government clarifies views on gay sex