We should update from gcc-11.2.1-3.fc36 (or newer), which brings various changes (updated to latest snapshot, added the libgcc LDFLAGS_FOR_TARGET patch, __VA_OPT__ support, constint thread_local opt, bundled(lib{backtrace,ffi}), ldconfig* fix etc.
This targets DTS 11.1, but we don't have the ITR yet.
Now we do.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (devtoolset-11-gcc bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:4732