http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52314
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-20 11:57:38 UTC --- Once I made create_tmp_var_raw use TYPE_MAIN_VARIANT (type) - but I don't remember what the fallout from this was. I suppose at least create_tmp_from_val should do that though, at least strip CV qualifiers and address-space (retaining restrict only?).