diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/lookup5.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/lookup5.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/lookup5.C b/gcc/testsuite/g++.dg/template/lookup5.C new file mode 100644 index 000000000..022202a71 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/lookup5.C @@ -0,0 +1,17 @@ +// PR c++/13925 + +namespace N { + template <class T> void f(T); + + namespace M { + class A { + friend void f<int>(int); + }; + } + + template <class T> void f(T) {} + template <> void f<int>(int ) + { + f<long>(0); + } +} |