exaple below compiled witch -pedantic makes : $ g++-3.0 -pedantic foo.cc foo.cc: In function `int foo()': foo.cc:8: parse error before `;' token
w/o -pedantic it is ok. #include <vector> using namespace std; template<class T> int foo() { vector<T>::iterator i; /* this line: parse error before ';' */ } int main(){return 0;} -- vitas @;; [EMAIL PROTECTED] -- System Information Debian Release: testing/unstable Architecture: i386 Kernel: Linux merlin 2.4.3-ac9 #1 Wed Apr 18 23:10:53 CEST 2001 i586 Versions of packages g++-3.0 depends on: ii gcc-3.0 1:3.0-0pre010403 The GNU C compiler. ii gcc-3.0-base 1:3.0-0pre010403 The GNU compiler collection (base ii libc6 2.2.2-4 GNU C Library: Shared libraries an ii libstdc++3.0-dev 1:3.0-0pre010403 The GNU stdc++ library version 3 (