http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53721
--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-06-20 12:34:44 UTC --- I agree that the example should be accepted. I would like to add one further related example directly from the standard specification. The example from [expr.prim.general] p3 is also rejected in C++11 mode: struct A { char g(); template<class T> auto f(T t) -> decltype(t + g()) { return t + g(); } }; template auto A::f(int t) -> decltype(t + g()); // Line 7 reporting on gcc 4.8.0 20120610 (experimental): "7|error: cannot call member function 'char A::g()' without object"