I am getting compile-time error with the program below. I am wondering what is wrong here....
Compile and Build as: ifort /O3 /exe:Test.exe BaseModule.f90 ObjModule.f90 Test.f90
When the character array is passed as assumed-shape it is fine. That is, commenting out line 21 from ObjModule.f90 will result in a successful build.
At first glance, your code looks conforming to me. It's the compiler which appears to be in error. You may want to submit a support request with Intel and have their team review your case, especially if you think the code works with prior versions of the compiler.