I develop C++ applications on CentOS 5.4 and we came across several inconvenient situations with gcc 4.1.2 like inability to debug local variables in class constructor which is a confirmed gcc bug (same problem with scoped variables). I'm considering to upgrade to higher gcc version. What version should I choose for production environment? Can I simply grab the latest release from gcc.org, build it and start using it? Should I only use the rpms from CentOS repositories?
Thanks.