svn commit: r207664 - projects/clangbsd/contrib/libstdc++/include/ext

Roman Divacky rdivacky at FreeBSD.org
Wed May 5 16:57:03 UTC 2010


Author: rdivacky
Date: Wed May  5 16:57:02 2010
New Revision: 207664
URL: http://svn.freebsd.org/changeset/base/207664

Log:
  Make libstdc++ compilable with access control enabled. This is
  necessary because clang++ does these checks while g++ does not
  (it's a bug on g++ side).

Modified:
  projects/clangbsd/contrib/libstdc++/include/ext/bitmap_allocator.h

Modified: projects/clangbsd/contrib/libstdc++/include/ext/bitmap_allocator.h
==============================================================================
--- projects/clangbsd/contrib/libstdc++/include/ext/bitmap_allocator.h	Wed May  5 16:47:33 2010	(r207663)
+++ projects/clangbsd/contrib/libstdc++/include/ext/bitmap_allocator.h	Wed May  5 16:57:02 2010	(r207664)
@@ -682,6 +682,8 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
      */
     void 
     _M_clear();
+  public:
+    template < typename _Tp > friend class bitmap_allocator;
   };
 
 
@@ -736,6 +738,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 	    };
 	};
 
+    public:
       struct _Alloc_block
       {
 	char __M_unused[aligned_size<sizeof(value_type),
@@ -743,6 +746,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
       };
 
 
+    private:
       typedef typename std::pair<_Alloc_block*, _Alloc_block*> _Block_pair;
 
       typedef typename 


More information about the svn-src-projects mailing list