<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - __gnu_cxx::hash_map copy constructor is broken"
   href="https://llvm.org/bugs/show_bug.cgi?id=26657">26657</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>__gnu_cxx::hash_map copy constructor is broken
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.8
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>eugeni.stepanov@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>#include <ext/hash_map>

__gnu_cxx::hash_map<int, int> h1;
__gnu_cxx::hash_map<int, int> h2(h1);


In file included from ../llvm/4.cc:1:
/code/build-llvm/bin/../include/c++/v1/ext/hash_map:213:5: warning: Use of the
header <ext/hash_map> is deprecated. Migrate to
      <unordered_map> [-W#warnings]
#   warning Use of the header <ext/hash_map> is deprecated.  Migrate to
<unordered_map>
    ^
/code/build-llvm/bin/../include/c++/v1/ext/hash_map:432:57: error:
'__non_const_iterator' is a private member of
     
'std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::pair<int,
int>, void *> *>'
            __hash_map_iterator<typename _HashIterator::__non_const_iterator>
__i)
                                                        ^
/code/build-llvm/bin/../include/c++/v1/ext/hash_map:659:16: note: in
instantiation of template class
     
'__gnu_cxx::__hash_map_const_iterator<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::pair<int,
int>, void
      *> *> >' requested here
    insert(__u.begin(), __u.end());
               ^
../llvm/4.cc:9:31: note: in instantiation of member function
'__gnu_cxx::hash_map<int, int, __gnu_cxx::hash<int>,
      std::__1::equal_to<int>, std::__1::allocator<std::__1::pair<const int,
int> > >::hash_map' requested here
__gnu_cxx::hash_map<int, int> h2(h1);
                              ^
/code/build-llvm/bin/../include/c++/v1/__hash_table:383:39: note: implicitly
declared private here
    typedef __hash_iterator<_NodePtr> __non_const_iterator;
                                      ^
1 warning and 1 error generated.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>