[LC++]Compiles with g++-3.2 but later versions flakey. Why?
Dr Mark H Phillips
mark at austrics.com.au
Tue Oct 25 15:16:02 UTC 2005
Hi,
I've attached some test code below. It compiles fine with
g++ version 3.2.3, but fails for later versions. The strange
thing is that different versions fail in different cases. Have
I uncovered genuine compiler bugs, or is there something else
going on?
Here's the errors I'm getting:
$ g++-3.3 testit.cc
testit.cc: In function `int main()':
testit.cc:22: error: `dummyx::dummyFunct' cannot be used as a function
$ g++-3.4 testit.cc
testit.cc: In function `int main()':
testit.cc:23: error: `dummyx::dummyFunct' cannot be used as a function
$ g++-4.0 testit.cc
testit.cc: In function ‘int main()’:
testit.cc:23: error: ‘dummyx::dummyFunct’ cannot be used as a function
$
Thanks,
Mark.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testit.cc
Type: text/x-c++src
Size: 594 bytes
Desc:
Url : http://lists.linux.org.au/pipermail/tuxcpprogramming/attachments/20051025/9a09c2c6/attachment.cc
More information about the tuxCPProgramming
mailing list