This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug 10916] New: parse error when trying to create iterator with a template
- From: gcc-bugzilla at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2003 20:23:36 -0000
- Subject: [Bug 10916] New: parse error when trying to create iterator with a template
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10916
Summary: parse error when trying to create iterator with a
template
Product: gcc
Version: 3.2.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: madden_blake@hotmail.com
CC: gcc-bugs@gcc.gnu.org
When you try to create an iterator (in this case a vector) to a templatized
container you will get a parse error, although I have no problem with creating
a templatized container itself. const_iterator has the same problem. The
following demonstrates:
class<typename Tchar_type = char>
class Object
{
std::vector<Tchar_type> m_charvector; //this works
std::vector<Tchar_type>::iterator m_iter; //this gives a parse error, but...
std::vector<char>::iterator m_iter2; //this is OK
};
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.