From 607eef6e92d2fcd08870fc7e6cc8addcef967841 Mon Sep 17 00:00:00 2001 From: Jason Merrill <jason@gcc.gnu.org> Date: Thu, 19 Aug 1999 17:18:22 -0400 Subject: [PATCH] new From-SVN: r28766 --- gcc/testsuite/g++.old-deja/g++.pt/repo1.C | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/repo1.C diff --git a/gcc/testsuite/g++.old-deja/g++.pt/repo1.C b/gcc/testsuite/g++.old-deja/g++.pt/repo1.C new file mode 100644 index 000000000000..f57b2c22fd05 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/repo1.C @@ -0,0 +1,18 @@ +// Bug: g++ complains about duplicate explicit instantiations with -frepo. +// From Jason Merrill <jason@cygnus.com> + +// Build then link: +// Special g++ Options: -frepo + +template <class T> struct A { + virtual ~A () { } +}; + +template <class T> void g (T t) { } + +template class A<int>; + +int main () +{ + g (42); +} -- GitLab