Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

MAX0 vs JMAX0

salbruce
Beginner
1,328 Views
I'm puzzled by why I get the following error in IVF 11.1:

error #6405: The same named entity from different modules and/or program units cannot be referenced. [MAX0]

if I use the function MAX0, but not if I use the function JMAX0 in something like:

ALLOCATE (X(NENT,NATT),ENT(NENT),ATT(NATT),VTYPE(MAX0(NENT,NATT)),STAT=IERR)

The error is flagged only if I have "Compile Time Diagnostics" set to "Show All (/warn:all)". If I turn that off the program compiles and appears to run correctly. I am using the MAX0 function in various subroutines in the project, but not intentionally using it as anything other than a built-in function.

NENT and NATT are implicit 4-byte integers.

From the Fortran language reference, it seems that MAX0 and JMAX0 should give the same results.

Thanks in advance for your help.
-Bruce


0 Kudos
6 Replies
Steven_L_Intel1
Employee
1,328 Views
Can you provide a source file that generates this error? I'd guess that if you set "Check Routine Interfaces" to No that this error will go away. It sounds as if there's a bug in this feature. Please help us out with a test case.
0 Kudos
salbruce
Beginner
1,328 Views
Yes, I will see if I can make a small example that gives this error and then post it.

Meanwhile, I tried the test you suggested and that is correct. If I set Compile Time Diagnostics to "Custom" and Check Routine Interfaces to "Yes", and the other options to "No", I get the error message. Setting Check Routine Interfaces to "No" results in no errors.
0 Kudos
salbruce
Beginner
1,328 Views
I made several tries at a short program that produces the problem but was unsuccessful. (That is, when I whack out a lot of code the problem disappears). I'm sure I could get one eventually, but no time right now. Maybe the easiest avenue would be if I could send you a whole project privately.
0 Kudos
Steven_L_Intel1
Employee
1,328 Views
That would be fine. You can attach a ZIP here and check the box to make the post Private, or submit it through Intel Premier Support and ask that it be assigned to me.
0 Kudos
salbruce
Beginner
1,328 Views
OK, I've submitted the project through Intel Premier Support.
Thanks,
Bruce
0 Kudos
Steven_L_Intel1
Employee
1,328 Views
Got it - thanks. I'll follow up there.
0 Kudos
Reply