<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 --- - Clang always looks up member names for redeclaration in the enclosing namespace scope"
   href="https://llvm.org/bugs/show_bug.cgi?id=23030">23030</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang always looks up member names for redeclaration in the enclosing namespace scope
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>chandlerc@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu, richard-llvm@metafoo.co.uk
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This lookup always fails and is "harmless". Except that it is making the
redeclaration name lookup cost way more than it strictly needs to.

This can be observed easily by asserting on the existence of DeclarationName
that is a CXXConstructorName inside of a non-CXXRecordDecl DeclContext's
StoredDeclsMap. You must also be using an external AST source in order to
enable caching of negative lookups. We shouldn't ever see such a thing, and
today we do.

Unfortunately fixing this requires spending serious time improving the
early-exit from CppLookupName which is a terribly subtle code path. Just filing
a bug here to track it.</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>