http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52901
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-08 18:09:06 UTC --- See also PR 51066 and PR 51270 and PR 38958 for similar RFEs for better diagnostics about creating dangling references