A programmer in our community thought he found a compiler bug while using vbcc on a motorola 68000.
vbcc ANSI/ISO-C compiler
Anyways, this was the compiler error he thought he found.
Originally Posted by
VladR
I just found out another compiler bug (related to postincrementing) after spending few hrs trying to "debug" using just the text output through the VirtualJaguar.
This:
Code:
DbgStr.Lines [DbgStr.LinesCount].Line [i] = msg [i++];
had to be changed into this, otherwise it was offset by 1:
Code:
DbgStr.Lines [DbgStr.LinesCount].Line [i] = msg [i];
i++;
Pretty nasty. I wonder how many of those bugs will I enncounter...
Anyway I shot this finding off to Dr Volker along with the other bug referenced, which still has not been ironed out yet, and this was his reply to the above mentioned bug in this line:
Code:
DbgStr.Lines [DbgStr.LinesCount].Line [i] = msg [i++];
Originally Posted by
Volker
This is illegal C code, because you are reading and writing in between sequence points.
So while another real experienced coder has some issues with the above line, everyone is scratching their head about what a 'sequence point' is.
I probably didnt have to go so in depth but figured needed a context.