c++/3423: "iterator" name lookup trouble

ak@ixion.net ak@ixion.net
Tue Jun 26 04:36:00 GMT 2001


>Number:         3423
>Category:       c++
>Synopsis:       "iterator" name lookup trouble
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 26 04:36:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Klöckner
>Release:        3.0
>Organization:
iXiONmedia
>Environment:
System: Linux dendrite 2.4.4 #4 Don Mai 3 00:14:41 CEST 2001 i586 unknown
Architecture: i586

host: i586-pc-linux-gnu
build: i586-pc-linux-gnu
target: i586-pc-linux-gnu
configured with: ./configure --prefix=/opt/gcc-3.0/
>Description:
#include <vector>
-------------------------------------------------------------------------------
using namespace std;

template <class T>
struct coord_vector {
  };

template<class T>
struct polygon_segment : public vector<coord_vector<T> > {
    void insert_c(iterator it);
  };

-------------------------------------------------------------------------------
	This file results in a parse error in the "insert_c" line, though
	it should probably find the superclass's iterator. The problem goes
	away if coord_vector is a non-template.
>How-To-Repeat:
	
>Fix:
	qualify "iterator" with superclass name
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list