https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62171
--- Comment #3 from vries at gcc dot gnu.org --- (In reply to Richard Biener from comment #2) > And maybe set DECL_BY_REFERENCE, a mere REFERENCE_TYPE doesn't prevent > you from doing (¶m)[2] which we'd miscompile. Not sure who added > that REFERENCE_TYPE code. Submitted here: https://gcc.gnu.org/ml/gcc-patches/2011-09/msg01489.html OK-ed here: https://gcc.gnu.org/ml/gcc-patches/2011-09/msg01489.html