[cfe-dev] template specialization and redecls

Craig Silverstein csilvers at google.com
Mon Nov 29 15:17:15 PST 2010


} That sounds very broken; are B::C and ::C somehow getting tangled
} together?

I don't think so.  The same problem is in evidence even with the
following code (where there's no B::C):

  struct B {
   template<class T> friend class C;
   friend class C<float>;
  };
  
  template<class T> class C {
  };
  
  C<int>* foo;

I agree it seems very broken. :-)

craig



More information about the cfe-dev mailing list