All supported operating systems that previously came with at least g++-11, also come with at least g++-12, so bumping the minimum should be fine.
For reference:
- https://packages.ubuntu.com/jammy/g++-12
- https://packages.ubuntu.com/noble/g++ (g++-13)
- https://packages.debian.org/bookworm/g++ (g++-12)
- FreeBSD Ports ship a recent GCC
- RHEL-based 8, and 9 ship with g++-14 via appstream (
dnf install gcc-toolset-14->/opt/rh/gcc-toolset-14/) - RHEL-based 10 ships with g++ (14 by default)
- OpenSuse Leap and Tumbleweed ship with g++ 15 https://software.opensuse.org/package/gcc15-c++
Obviously, downloading pre-compiled releases or compiling previous release branches is unaffected by this change.