a bug ? ( repost )

Wei Ku wku1@utk.edu
Mon Jul 13 13:26:00 GMT 1998


All the replied message are really appreciated. Mr. Alexandre Oliva is right
about the sequence points. The following test ( please compare it with the
examples in the original post.) demonstrates his point :

[
    OOMPI_Port master = OOMPI_COMM_WORLD[0];
    master >> offset >> rows;  // define sequence point here
    master >> OOMPI_Message( a[ 0], rows * NCA)
           >> OOMPI_Message( b[ 0], NRB * NCB);
] ( correct )

Is the sequence really undefined in the draft ? It seems to me that the
'left to right' order for operator >> has already restricted the sequence.
All three examples ( two in the original post and one in this message ) work
normally when compiled with AIX xlC. This indicates a difference in parsing
the code between xlC and gcc.

Wei Ku

wku1@utk.edu




More information about the Gcc-bugs mailing list