I have created a pull request that allows the use of fresh GCC for the FreeSwitch project.
https://github.com/signalwire/freeswitch/pull/1161

Think we can use the same approach to use fresh GCC for the Kamailio project.
For RHEL based dist and old Debian dest.

Is it a useful approach to use fresh GCC to build a master branch?

Sergey