------- Comment #1 from redi at gcc dot gnu dot org 2010-07-12 18:24 ------- Using static_cast<const int&&> also works, the problem is only with C-style casts -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44920