Yikes -- that's a typo. I guess all other C compilers must realize that
that's a silly mistake and silently convert it to +3.
You can remove the "-" from before MPI_MERGE_TAG.
I've fixed this in CVS; thanks for the report.
On Thu, 17 Jul 2003, Andrew Cunningham wrote:
> When building on HP-UX using c89 the compiler flags this line in
> icmerge.c as an error
>
> cc: "icmerge.c", line 104: error 1560: Modifiable lvalue required with
> operator "--".
>
> err = lam_coll_alloc_inter_cid(comm, 0, comm, 0, -MPI_MERGE_TAG,
> BLKMPIICOMMMERGE, &cid);
>
>
> MPI_MERGE_TAG is a macro
> #define MPI_MERGE_TAG -3 /* used to merge inter-comm */
> So -MPI_MERGE_TAG expands to --3
>
> Not sure what other compilers do in this situation.
>
>
> Andrew
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|