Thanks for the report, this is a bug in the compiler: https://gcc.gnu.org/PR91601
The fix has not been backported to gcc-8, but we can do so, the patch applies fine and is safe. Let's fix this for RHEL 8.3.
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-2020:4504