diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-28 16:08:02 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-28 16:08:02 +0000 |
commit | 566f872fc69b06b7ec6941bdb6c76df862ac60a4 (patch) | |
tree | 2419cf0c920ad4437cda9f7d671ade83c7f294b4 /gcc/testsuite/g++.dg | |
parent | 9361db200421394697270afe5b7434919ef20fbf (diff) | |
download | gcc-566f872fc69b06b7ec6941bdb6c76df862ac60a4.tar.gz |
PR c++/32596
PR c++/32400
* pt.c (check_explicit_specialization): Set DECL_INTERFACE_KNOWN
and DECL_NOT_REALLY_EXTERN if tmpl_func is not public.
* g++.dg/ext/visibility/anon5.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127863 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg')
-rw-r--r-- | gcc/testsuite/g++.dg/ext/visibility/anon5.C | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ext/visibility/anon5.C b/gcc/testsuite/g++.dg/ext/visibility/anon5.C new file mode 100644 index 00000000000..d069eeab661 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/visibility/anon5.C @@ -0,0 +1,8 @@ +// PR c++/32596 +// { dg-do compile } + +namespace +{ + template<class T> inline void char_less(void) { } + template<> inline void char_less<char>(void) { } +} |