Devtoolset-2 provides g++-4.8.2 : # dnf install --nogpgcheck devtoolset-2-gcc-c++
Further INFO : Please read my post here https://stackoverflow.com/questions/37774923/downgrading-c-c-compiler-on-fedora-23-to-a-matlab-r2016a-compatible-compiler/37776358#37776358
And devtoolset-3 provides g++-4.9.2 . No repo for Fedora 24, but with no extra dependencies for these EL7 packages, they install easily. ... The four packages :
devtoolset-3-gcc-4.9.2-6.2.el7.x86_64.rpm
devtoolset-3-gcc-c++-4.9.2-6.2.el7.x86_64.rpm
devtoolset-3-libstdc++-devel-4.9.2-6.2.el7.x86_64.rpm
devtoolset-3-runtime-3.1-12.el7.x86_64.rpm
... are available as one package, devtoolset-3-gcc-c++_el7.tar
https://drive.google.com/file/d/0B7S255p3kFXNeElrMmc0TTlYLWM/view?usp=sharing
Unpack, and
cd devtoolset-3-gcc-c++_el7/
# dnf install ./*
Be aware that the command scl enable devtoolset-3 bash
enables gcc/g++ v4.9 in the current terminal session only.
EDIT : A copy of the CentOS7 repo files and the "key file" works perfect in Fedora 24. Just copy {CentOS-SCLo-scl-rh.repo, CentOS-SCLo-scl.repo} to /etc/yum.repos.d/, and RPM-GPG-KEY-CentOS-SIG-SCLo to /etc/pki/rpm-gpg/ .
Files, CentOS-SCLo-scl-el7.tar.gz https://drive.google.com/file/d/0B7S255p3kFXNSnR0TkJKbm5qMDQ/view?usp=sharing
Install : # dnf install devtoolset-3-gcc-c++