Re: Corrections to May 8 Document

Dick Treumann (treumann@kgn.ibm.com)
Tue, 20 May 1997 09:31:55 -0400

James Cownie wrote:

> The fact that the implementation of MPI_Send may not match the
> prototype in the header should be at worst a warning.
>
> -- Jim

It seems the author's of xlc (the compiler I use) do not agree that this
mismatch is only worthy of a warning. The following example produces a
serious error on xlc.

int foo( int*);

int foo(const int *i) {}

I understand the argument that it should be a warning but am not sure
the ISO C standard supports the argument. Clearly,

int foo(const int*);

int foo(int *i){}

should be a serious error and I did not find a place in the older ANSI
document I have which distinguishes one redeclaration from the other.

Dick

-- 
Dick Treumann                               IBM RS/6000 Division
(Internet) treumann@pok.ibm.com             Poughkeepsie, NY
(VNET)     TREUMANN at KGNVMC               Tel: (914) 433-7846
(internal) treumann@windsurf.pok.ibm.com    Fax: (914) 433-8363