Trying to compile an application with intel compiler 13.1.3 for linux and openmpi I kept getting
This name does not have a type, and must have an explicit type. [MPI_IN_PLACE]
As the application is not open source... I created a small example to show the issue (file attached) which I boiled down to the an issue with the current version of the compiler.
[alin@abaddon:~/playground/mpimod]: ifort *.F90
test.F90(5): error #6404: This name does not have a type, and must have an explicit type. [MPI_IN_PLACE]
write(*,*)"MPI_IN_PLACE: ", mpi_in_place
compilation aborted for test.F90 (code 1)
if in myf.h i comment line 2 and uncomment line 3 everything compiles as expected.
so it seems to be an issue when there is only one variable in the common block.
older versions of the compiler that I have tried 2013.2.146 and 2013.0.079 compile the files as expected.
another workaround is: in file myTestMod.F90 the line
use myMPI, only : mpi_in_place
is replaced by
is this a regression or I miss something?