As devtoolset 6 worked on CentOS 6, upgrading to devtoolset 7 is better as it will be supported for a longer time.