This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[c++] friend (inner) class template confusion



The following code, compiled with current CVS g++ give:
test01.cc:11: typename type `typename enclosing<T>::inner' declared `friend'

This is incorrect.

-benjamin

--------------

template <class T> 
  struct enclosing 
  {
    struct inner 
    { };
  };

class test
{
  // g++ typename type `typename enclosing<T>::inner' declared `friend'
  template <class T> friend struct enclosing<T>::inner;
};


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]