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]

egcs 1.0.1 internal compiler error 90



>>>>> "David" == David Rourke <rourke@waugh.cchem.berkeley.edu> writes:

    David> Given the following code:

I submitted a patch for this problem last night; I expect a revised
version of that patch will be installed shortly.

    David> foo.cc ------ #include <iostream.h> #include <vector.h>

    David> template<class T> class mat { public: typedef vector<T>
    David> rowtype; };

    David> template<class T> void foo(T) { mat<T>::rowtype x(3);

    David>   for (mat<T>::rowtype::iterator p=x.begin(); p<x.end();
    David> p++) cin >> *p;

    David>   for (mat<int>::rowtype::iterator p=x.begin(); p<x.end();
    David> p++) cout << *p << endl; }

    David> int main() { foo(int(0)); return 0; }


-- 
Mark Mitchell		mmitchell@usa.net
Stanford University	http://www.stanford.edu



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