I have the following fortran code that compiles with pre 2017 ifort:
program parallel_m contains character(500) function PARALLEL_message(i_ss) character
Your program is illegal Fortran after the preprocessing because the // is interpretted as a C comment.
//
Simply do not use icc but ifort. Ifort is for Fortran, icc is for C. Ifort uses a different preprocessor fpp which does not discard //.
icc
ifort
Ifort
fpp