The following code:
struct A { int f(int); auto g(int x) -> decltype(f(x)); };
Fails to compile with the error:
erro
Currently you can only access 'this' and members of the class inside the function body, but this is likely to be changed soon:
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1207