fix a constexpr optimization issue in gcc
fix #4542: ati driver reported uniform error