re PR c++/5118 (c4x-g++ Fails on Templates)
authorJason Merrill <jason@gcc.gnu.org>
Thu, 4 Apr 2002 00:39:22 +0000 (19:39 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 4 Apr 2002 00:39:22 +0000 (19:39 -0500)
        PR c++/5118
        * class.c (get_vfield_name): Use the constructor_name.

From-SVN: r51830

gcc/testsuite/g++.dg/debug/template1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/debug/template1.C b/gcc/testsuite/g++.dg/debug/template1.C
new file mode 100644 (file)
index 0000000..279b4b1
--- /dev/null
@@ -0,0 +1,15 @@
+// PR c++/5118
+
+template <int Count>
+class d
+{
+public:
+  d() 
+  { 
+        myInt = Count;
+  }
+  int myInt;
+  virtual ~d() {}
+};
+
+volatile d<5> instD;