From patchwork Sat Dec 1 22:54:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [C++,testcase] PR 55558 From: Paolo Carlini X-Patchwork-Id: 203157 Message-Id: <50BA8AB1.2050002@oracle.com> To: "gcc-patches@gcc.gnu.org" Date: Sat, 01 Dec 2012 23:54:41 +0100 Hi, I'm adding the testcase and closing the PR. Thanks, Paolo. /////////////////// 2012-12-01 Paolo Carlini PR c++/55558 * g++.dg/cpp0x/decltype46.C: New. Index: g++.dg/cpp0x/decltype46.C =================================================================== --- g++.dg/cpp0x/decltype46.C (revision 0) +++ g++.dg/cpp0x/decltype46.C (working copy) @@ -0,0 +1,12 @@ +// PR c++/55558 +// { dg-do compile { target c++11 } } + +struct A +{ + static int member; +}; + +template void foobar () +{ + typedef decltype (A::member) myType; +}