gcc compiler bug ? testcase included, Was: Re: KDE/kdebase/kicker/kicker

Felix Berger bflat1 at gmx.net
Wed Jan 4 19:48:30 GMT 2006


On Wednesday 04 January 2006 20:35, Alexander Neundorf wrote:

> Which versions of gcc are able to compile this ?

Results on a Debian unstable system:

bflat1 at leela:/tmp$ g++-2.95 -o test test.cpp 
test.cpp: In function `int main()':
test.cpp:18: type specifier omitted for parameter
test.cpp:18: parse error before `1'

bflat1 at leela:/tmp$ g++-3.2 -o test test.cpp 
test.cpp: In function `int main()':
test.cpp:18: type specifier omitted for parameter
test.cpp:18: syntax error before numeric constant

bflat1 at leela:/tmp$ g++-3.3 -o test test.cpp 
test.cpp: In function `int main()':
test.cpp:18: error: type specifier omitted for parameter
test.cpp:18: error: syntax error before numeric constant

bflat1 at leela:/tmp$ g++-4.0 -o test test.cpp 

Only g++ 4.0 was able to compile here :-(

The exact versions are:

2.95.4
3.2.3
3.3.6
and
4.0.3 20051201 (prerelease)

Felix


-- 
Try Debian GNU/Linux!
http://www.felix.beldesign.de/




More information about the kde-core-devel mailing list