The Log Cabin Republican's "pro-gay" presidential candidate said that he would consider appointing justices to the Supreme Court who may overturn the decision on same-sex marriage.

In an interview Sunday with Fox News' Chris Wallace, GOP presidential frontrunner Donald Trump expressed his displeasure with the United States Supreme Court's 2015 decision legalizing same-sex marriage.

"They have ruled on it," Trump told Wallace. "I wished it had been done by the states. I disagree with the Supreme Court from the standpoint that it should be a states rights issue and that's the way it should have been ruled on, Chris. Not the way they did it. This was a very surprising ruling. And I can see changes coming down the line frankly."

Pursuing the issue, Wallace asked Trump to clarify his position.

"Are you saying that if you become President you might try to appoint justices to overrule the decision on same-sex marriage?" he asked.

Sunday's comments mark a reversal on the position for Trump, who in September said, "You have to go with it. The decision is the law of the land."

In January, conservative gay group Log Cabin Republicans touted Trump on their Facebook page as being gay-friendly by pointing to a article about his previous stance on LGBT issues.

"Donald Trump simply has no reason to be homophobic," they wrote.