3B1 compiler bug warning
Patrick Place
prp at sei.cmu.edu
Sat Aug 12 03:04:04 AEST 1989
This is a warning to anyone developing code using cc on
a 3B1 - the version appears to be 3.51.
the following function call
f(a,b,*c++);
does not compile correctly when c is declared
register short* c;
However, the bug is more subtle than that, it only occurs
when the auto-incremented short pointer is the last
parameter in the function call.
Obviously, one can rearrange the code to look like
f(a,b,*c);
c++;
However, this is a nuisance, both to search for and fix,
however, it does compile correctly.
Perhaps this is a well known compiler bug, in which case
sorry for wasting the bandwidth. I would be interested
in other known compiler bugs, so as to avoid dangerous
constructs in my code.
Pat Place prp at sei.cmu.edu
More information about the Comp.sys.att
mailing list