title: Is the specification of `bsearch` in C++11 & C++14 defective?
body: <p>Following on from my answer to <a href="https://stackoverflow.com/q/26160465/560648">this question</a>, in both C++11 and C++14:</p>
  
  <blockquote>
    <p><code>[C++11, C++14: 25.5/2]:</code> The contents are the same as the Standard C library header <code>&lt;stdlib.h&gt;</code> with the following exceptions:</p>
    
    <p><code>[C++11, C++14: 25.5/3]:</code> The function signature:</p>
  
  <pre><code>bsearch(const void *, const void *, size_t, size_t,
          int (*)(const void *, const void *));
  </code></pre>
    
    <p>is replaced by the two declarations:</p>
  
  <pre><code>extern "C" void *bsearch(const void *key, const void *base,
                           size_t nmemb, size_t size,
                           int (*compar)(const void *, const void *));
  
  extern "C++" void *bsearch(const void *key, const void *base,
                             size_t nmemb, size_t size,
                             int (*compar)(const void *, const void *));
  </code></pre>
    
    <p>both of which have the same behavior as the original declaration.</p>
  </blockquote>
  
  <p>However,</p>
  
  <blockquote>
    <p><code>[C++11, C++14: 7.5/5]:</code> If two declarations declare functions with the same name and parameter-type-list (8.3.5) to be members of the same namespace or declare objects with the same name to be members of the same namespace and the declarations give the names different language linkages, the program is ill-formed; no diagnostic is required if the declarations appear in different translation units. <em>[..]</em></p>
  </blockquote>
  
  <p>Is this a defect?</p>