Skip to content
Snippets Groups Projects
  • Douglas Gregor's avatar
    Implement the basics of implicit instantiation of class templates, in · 463421de
    Douglas Gregor authored
    response to attempts to diagnose an "incomplete" type. This will force
    us to use DiagnoseIncompleteType more regularly (rather than looking at
    isIncompleteType), but that's also a good thing.
    
    Implicit instantiation is still very simplistic, and will create a new
    definition for the class template specialization (as it should) but it
    only actually instantiates the base classes and attaches
    those. Actually instantiating class members will follow. 
    
    Also, instantiate the types of non-type template parameters before
    checking them,  allowing, e.g., 
    
      template<typename T, T Value> struct Constant; 
     
    to work properly.
    
    llvm-svn: 65924
    463421de