[Mpi-forum] Compile problems with examples in MPI Standard

Dries Kimpe dkimpe at mcs.anl.gov
Tue Jul 24 10:52:02 CDT 2012


This page might explain it:
http://www.lysator.liu.se/c/c-faq/c-2.html

"Equivalence" refers to the following key definition:

An lvalue [see question 2.5] of type array-of-T which appears in an
expression decays (with three exceptions) into a pointer to its first
element; the type of the resultant pointer is pointer-to-T.
(The exceptions are when the array is the operand of a sizeof or &
operator, or is a literal string initializer for a character array.)


In this case, we're passing the argument to operator &, which disables the
automatic decay.

  Dries
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.mpi-forum.org/pipermail/mpi-forum/attachments/20120724/6ecc34a7/attachment-0001.pgp>


More information about the mpi-forum mailing list