Skip to content
  • Douglas Gregor's avatar
    The injected-class-name of class templates and class template · 97f1f1c4
    Douglas Gregor authored
    specializations can be treated as a template. Finally, we can parse
    and process the first implementation of Fibonacci I wrote!
    
    Note that this code does not handle all of the cases where
    injected-class-names can be treated as templates. In particular,
    there's an ambiguity case that we should be able to handle (but
    can't), e.g.,
    
      template <class T> struct Base { }; 
      template <class T> struct Derived : Base<int>, Base<char> {
        typename Derived::Base b;       // error: ambiguous
        typename Derived::Base<double> d;  // OK 
      };
    
    llvm-svn: 67720
    97f1f1c4
Loading