gcc-libraries has 0022-Default-values-for-certain-field-descriptors-in-form.patch (which is a backport of upstream https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89100#c12 -- GCC10+ only) but system gcc doesn't have the patch, which can cause issues when porting code to RHEL 8.
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 (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:7688