Skip to content
  • Douglas Gregor's avatar
    Teach DeclContext how to find the primary declaration for any TagDecl · dee1be8e
    Douglas Gregor authored
    even when we are still defining the TagDecl. This is required so that
    qualified name lookup of a class name within its definition works (see
    the new bits in test/SemaCXX/qualified-id-lookup.cpp).
    
    As part of this, move the nested redefinition checking code into
    ActOnTag. This gives us diagnostics earlier (when we try to perform
    the nested redefinition, rather than when we try to complete the 2nd
    definition) and removes some code duplication.
    
    llvm-svn: 62386
    dee1be8e
Loading