Paul Eggert writes: > The basic idea > here is that coreutils will attempt to detect the problem, and pass > the -qlanglvl=extc89 option to IBM's compiler. (It will pass > -qlanglvl=ansi to older versions of IBM's compilers.) I assume this > will work around the problem; if not, please let me know.
It does work the way you expect; this test is with _Bool as the datatype for b. % cc -qlanglvl=extc89 test.c -o test % ./test d is ffffffffffff669 -2 + b is -1 (should be -1) &d[-1] is ffffffffffff668 &c[4] is ffffffffffff668 &d[-2 + b] is ffffffffffff668 &d[-2 + b] == &c[4] (OK) Thanks! ************************************************************************* The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank you. ************************************************************************* _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils