[PATCH] std::map test fails concept check
Nathan Myers
ncm-nospam@cantrip.org
Thu Jul 24 06:35:00 GMT 2003
When running "make check" on a mainline system built with
concept-checking turned on, I get an unexpected failure in
testsuite/23_containers/map_operators.cc.
It appears that a map<int,const int> is not allowed, because const int
is not an assignable type. The fix is obvious. Probably it should
be in 3.3 too. If it's OK, would somebody please check it in for me?
Thanks,
Nathan Myers
ncm-nospam@cantrip.org
2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
* testsuite/23_containers/map_operators.cc: conform to
container requirement; value must be Assignable.
*** testsuite/23_containers/map_operators.cc 4 Jul 2002 07:25:19
-0000 1.9
--- testsuite/23_containers/map_operators.cc 24 Jul 2003 06:00:10
-0000
***************
*** 28,34 ****
// http://gcc.gnu.org/ml/libstdc++/2000-11/msg00093.html
void test02()
{
! typedef std::map<int,const int> MapInt;
MapInt m;
--- 28,34 ----
// http://gcc.gnu.org/ml/libstdc++/2000-11/msg00093.html
void test02()
{
! typedef std::map<int,int> MapInt;
MapInt m;
More information about the Libstdc++
mailing list