This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19188] friend funtion inside a template class seems to have a problem
- From: "lerdsuwa at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Dec 2004 14:21:02 -0000
- Subject: [Bug c++/19188] friend funtion inside a template class seems to have a problem
- References: <20041229134715.19188.max656@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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