------- Comment #8 from paolo dot carlini at oracle dot com 2009-11-22 17:02 ------- To work around this, can't you move the decltype as default of an additional template parameter and use result_of for the result type?
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42132