Take $S=\mathbb{Z}[X]$ and $R=\mathbb{Q}[X]$. Then $gcd_S (2,X)=1$ and $gcd_R(2,X)=2$, where both $R$ and $S$ are GCD-domains.