Fatal error modified `<new>`

It was mentioned by mato in [url]Cannot install ROOT. Make problem? - #9 by ksmith that it may be related to gcc from “Developer Toolset” or “Software Collections”. How do I know if I have installed gcc from these locations? I have used the gcc-4.8.5-4.el7.x86_64 package from the CentOS 7 base repo.