[patch] Fix template params in set/14340.cc tests

Jonathan Wakely cow@compsoc.man.ac.uk
Sat Jul 3 17:17:00 GMT 2004


Hi all,

The attached patch fixes the instantiations of set<int> and multiset<int>
in the 14340.cc tests.  Caught by concept-checks, which made these FAIL.
Hooray for concept-checks  :-)

2004-07-03  Jonathan Wakely  <redi@gcc.gnu.org>

        * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
        instantiation of set and multiset (functor param given as int).

OK for mainline and 3.4 ?

This makes the testsuite concept-check clean again, so I'm wondering
whether it would be a good idea to unconditionally define
_GLIBCXX_CONCEPT_CHECKS for the testsuite.

jon


-- 
"Only two things are infinite: the universe and human stupidity,
 and I'm not sure about the former."
	- Albert Einstein
-------------- next part --------------
Index: testsuite/23_containers/multiset/14340.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/23_containers/multiset/14340.cc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 14340.cc
--- testsuite/23_containers/multiset/14340.cc	18 May 2004 18:41:22 -0000	1.1.2.1
+++ testsuite/23_containers/multiset/14340.cc	3 Jul 2004 16:06:43 -0000
@@ -36,7 +36,7 @@
 // libstdc++/14340
 int main()
 {
-  typedef std::multiset<int, int> container;
+  typedef std::multiset<int> container;
   __gnu_test::conversion<container>::iterator_to_const_iterator();
   return 0;
 }
Index: testsuite/23_containers/set/14340.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/23_containers/set/14340.cc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 14340.cc
--- testsuite/23_containers/set/14340.cc	18 May 2004 18:41:23 -0000	1.1.2.1
+++ testsuite/23_containers/set/14340.cc	3 Jul 2004 16:06:43 -0000
@@ -36,7 +36,7 @@
 // libstdc++/14340
 int main()
 {
-  typedef std::set<int, int> container;
+  typedef std::set<int> container;
   __gnu_test::conversion<container>::iterator_to_const_iterator();
   return 0;
 }


More information about the Libstdc++ mailing list