1.1b: -pedantic results in "parse error"

J.H.M. Dassen jdassen@wi.leidenuniv.nl
Thu Oct 1 13:20:00 GMT 1998


[This problem has been reported as a bug through the Debian bugtracking
system ( http://www.debian.org/Bugs/ ); please Cc: 27217@bugs.debian.org on
on-topic replies]

OS: Linux 2.0.35
Architecture: i686
egcs: 1.1b
libc: GNU libc 2.0.7 (aka libc6)

Code test.cc:
include <vector>
template<class T> void foo() { std::vector<T>::iterator i; }

Behaviour: 

/scratch/test$ g++ -Wall -c test.cc
/scratch/test$ g++ -Wall -pedantic -c test.cc
test.cc: In function `void foo()':
test.cc:2: parse error before `;'

Greetings,
-- 
Ray Dassen <jdassen@wi.LeidenUniv.nl>



More information about the Gcc-bugs mailing list