From eb81f6ff2831e13915357daf193fd59f9bee5a01 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 3 Apr 2002 19:39:22 -0500 Subject: [PATCH] re PR c++/5118 (c4x-g++ Fails on Templates) PR c++/5118 * class.c (get_vfield_name): Use the constructor_name. From-SVN: r51830 --- gcc/testsuite/g++.dg/debug/template1.C | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gcc/testsuite/g++.dg/debug/template1.C diff --git a/gcc/testsuite/g++.dg/debug/template1.C b/gcc/testsuite/g++.dg/debug/template1.C new file mode 100644 index 00000000000..279b4b17337 --- /dev/null +++ b/gcc/testsuite/g++.dg/debug/template1.C @@ -0,0 +1,15 @@ +// PR c++/5118 + +template +class d +{ +public: + d() + { + myInt = Count; + } + int myInt; + virtual ~d() {} +}; + +volatile d<5> instD; -- 2.30.2