https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Sorry about the long delay. Unfortunately I'm not sure yet how to fix it. We have Ref<const Plane>::inner (&TARGET_EXPR <D.2839, FrameMetadata::planes ((const struct FrameMetadata *) fm)>) which returns a ref and its arg is a temporary.