From patchwork Thu Oct 4 23:21:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [C++,testcase] PR 53403 Date: Thu, 04 Oct 2012 13:21:08 -0000 From: Paolo Carlini X-Patchwork-Id: 189366 Message-Id: <506E19E4.1090103@oracle.com> To: "gcc-patches@gcc.gnu.org" Hi, I'm adding the testcase and closing the PR. Tested x86_64-linux. Thanks, Paolo. ///////////////////////////// 2012-10-04 Paolo Carlini PR c++/53403 * g++.dg/template/friend53.C Index: g++.dg/template/friend53.C =================================================================== --- g++.dg/template/friend53.C (revision 0) +++ g++.dg/template/friend53.C (working copy) @@ -0,0 +1,23 @@ +// PR c++/53403 + +template +class Foo +{ + typedef void type; + template friend void f(); +public: + Foo() {} +}; + +template class Foo; + +template +void f() +{ + typedef Foo::type type; +} + +int main() +{ + f(); +}