Hi, testcase committed to mainline.
Thanks, Paolo. ///////////////////////
2013-07-22 Paolo Carlini <paolo.carl...@oracle.com> PR c++/52816 * g++.dg/cpp0x/decltype56.C: New.
Index: g++.dg/cpp0x/decltype56.C =================================================================== --- g++.dg/cpp0x/decltype56.C (revision 0) +++ g++.dg/cpp0x/decltype56.C (working copy) @@ -0,0 +1,11 @@ +// PR c++/52816 +// { dg-do compile { target c++11 } } + +class c { + int f; + public: + template <typename A> + decltype(f) m(A) const; +}; + +decltype(c{}.m(0)) i;