https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80267
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Although the problem probably arises in process_outer_var_ref, where with decl_maybe_constant_var_p now returning true for references we take a different path which likely messes things up, but no idea what's going on.