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]
Other format: [Raw text]

[Bug c++/21575] definition member function of template class with nested class as return type


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-14 21:24 -------
Invalid, you need the typename keyword, like so:
template<class T>
class foo {
public:
  typedef T foo2;

  foo2 bar();
};

template<class T>
typename foo<T>::foo2 foo<T>::bar() {
  return foo2();
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21575


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