This came recently in BZ 1709538. Jakub submitted a patch implementing a workaround for such wrong code upstream: https://gcc.gnu.org/ml/gcc-patches/2019-05/msg00915.html We should probably include this patch in out RHEL 8 system compiler.
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, 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-2019:3565