Is it possible to catch an error caused by an expression like m[x] = m[y]? Generally, the last statement v in auto &v = m[x]; m[newkey] = somevalue; v; is invalid because it uses an invalid reference. http://reviews.llvm.org/D7931 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/