This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Template.cc testsuite compilation fix


Hi.

Both gdb-4.17.85 and gdb-4.17.86 (the two most recent snapshots I'm
aware of) failed the c++ tests for 'template.cc' because the test
program did not compile correctly. egcs-1.1.1 was not happy about
the '0' template parameter. The attatched patch solves the compilation
glitch, and the (for me), the first 5 tests succeed. Only the
'print t5i.value()' test failed. As best as I can tell, the change
does not invalidate the template tests.

Thanks for your work on gdb.

Art Haas
======================
--- gdb-4.17.86/gdb/testsuite/gdb.c++/templates.cc.orig	Mon Jan 11 09:20:53 1999
+++ gdb-4.17.86/gdb/testsuite/gdb.c++/templates.cc	Sat Mar 13 11:29:44 1999
@@ -724,7 +724,7 @@
   Baz<int, 's'> bazint;
   Baz<char, 'a'> bazint2;
 
-  Qux<char, 0> quxint2;
+  Qux<char, string> quxint2;
   Qux<int, string> quxint;
 
   Qux1<int, gf1> qux11;