From 0d6959a02475c9aa04001cfdd714afa1a6a4bbc2 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 3 Jan 2007 09:00:30 +0100 Subject: [PATCH] re PR c++/29054 (ICE on friend template specialization) PR c++/29054 * g++.dg/template/friend49.C: New test. From-SVN: r120384 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/template/friend49.C | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/friend49.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d9b05a8be4f..b3ba5a70c77 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-01-03 Jakub Jelinek + + PR c++/29054 + * g++.dg/template/friend49.C: New test. + 2007-01-03 Steven G. Kargl * gfortran.dg/ibits.f90: New test. diff --git a/gcc/testsuite/g++.dg/template/friend49.C b/gcc/testsuite/g++.dg/template/friend49.C new file mode 100644 index 00000000000..b4d717f5708 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/friend49.C @@ -0,0 +1,18 @@ +// PR c++/29054 +// { dg-do compile } + +struct A +{ + template static void create (U) {} +}; + +struct B +{ + friend void A::create (const char *); +}; + +int +main () +{ + A::create("test"); +}