PR78326 fix incorrect access of data member in base class
authorJonathan Wakely <jwakely@redhat.com>
Mon, 14 Nov 2016 02:00:26 +0000 (02:00 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 14 Nov 2016 02:00:26 +0000 (02:00 +0000)
PR libstdc++/78326
* include/experimental/memory_resource (memory_resource::_S_max_align):
Change access to protected.

From-SVN: r242373

libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/memory_resource

index 83a61393cbba66f453143dd4dd948574bc604be7..c8cbb2c29f77a2717e956107e91012c87e3b76c1 100644 (file)
@@ -1,5 +1,9 @@
 2016-11-13  Jonathan Wakely  <jwakely@redhat.com>
 
+       PR libstdc++/78326
+       * include/experimental/memory_resource (memory_resource::_S_max_align):
+       Change access to protected.
+
        * doc/xml/manual/status_cxx2017.xml: Update status.
        * doc/html/manual/status.html: Regenerate.
        * include/bits/shared_ptr.h (shared_ptr(unique_ptr<_Yp, _Del>)): Add
index 39187c5088193d1b1a20136ad8f2e7bcec269b20..52e0b0316538a3bdf432b361147a1cb43cc6281b 100644 (file)
@@ -72,6 +72,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
   // 8.5 Class memory_resource
   class memory_resource
   {
+  protected:
     static constexpr size_t _S_max_align = alignof(max_align_t);
 
   public: