This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14434] New: typename parse error
- From: "mleone at pixar dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2004 19:03:17 -0000
- Subject: [Bug c++/14434] New: typename parse error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code gives "parse error before `;' token" after parsing "typename
iterator". Replacing "iterator" with "std::map<int,T>::iterator" is a workaround
#include <map>
template<typename T>
class IntMap : public std::map<int, T>
{
void test() {
typename iterator it;
}
};
--
Summary: typename parse error
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mleone at pixar dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14434