This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] std::map test fails concept check


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;
    


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