[LC++]Compiles with g++-3.2 but later versions flakey. Why?
Carlo Wood
carlo at alinoe.com
Tue Oct 25 23:49:10 UTC 2005
On Tue, Oct 25, 2005 at 04:45:23PM +0930, Dr Mark H Phillips wrote:
> 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.
3.3 and below are broken.
--
Carlo Wood <carlo at alinoe.com>
More information about the tuxCPProgramming
mailing list