GCC behaviour fault

Jarl Friis jarl@diku.dk
Tue Nov 30 23:39:00 GMT 1999


On 12 Nov 1999, Alexandre Oliva wrote:

> On Nov 12, 1999, Jarl Friis <jarl@diku.dk> wrote:
> 
> > But what shall I do when the compiler compiles my program but does it
> > faulty!
> 
> Submit a program that tests the expected behavior and abort()s if it
> finds unexpected behavior.
I have made a short program that demonstrates the bahaviour, but strange
things must be done to provoke it.

To me it seems that a referencecounter for a valarray seem to be mixed
with the objects. This is just a guess, and might be misleading.

> 
> > I can demonstrate different behaviour, though not in a short program.
> 
> How long is ``not short''? :-)

I succeded in localising the behaviour. So a short program is attached,
included is also the output from my command:
g++ -Wall -v simple.cc

Jarl


More information about the Gcc-bugs mailing list