https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120529
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppalka at gcc dot gnu.org
Keywords| |easyhack
--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Access checking is only done when a conversion is performed, not when it's just
computed. It seems ref_conv_binds_to_temporary computes the conversion and
checks it doesn't dangle, but it neglects to actually perform the conversion.
It probably needs to call convert_like to perform the conversion and check if
it's valid.