This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[c++] friend (inner) class template confusion
- To: gcc-bugs at gcc dot gnu dot org
- Subject: [c++] friend (inner) class template confusion
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Wed, 4 Oct 2000 10:33:42 -0700
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;
};