Message ID | 51ED5BAA.9050603@oracle.com |
---|---|
State | New |
Headers | show |
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;