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++/19188] friend funtion inside a template class seems to have a problem


------- Additional Comments From lerdsuwa at gcc dot gnu dot org  2004-12-29 14:20 -------
Not a bug.  You have to replace the code at line 68:

  tstack<T>::link* p;

with

  typename tstack<T>::link* p;

Check out the web page <http://gcc.gnu.org/gcc-3.4/changes.html>
and search for "You mustnow use the typename and template" ...
for more information.  There have been a lot of changes to the
C++ language since the old days and this is one of them.

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


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


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