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 10916] New: parse error when trying to create iterator with a template


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.


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