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

submodule interface mismatch error message

andrew_4619
Honored Contributor III
887 Views

When compiling a submodule I get some errors of the type.....

....ubs.f90: error #7257: The characteristics of the procedure's arguments differ from those of the same procedure's arguments that are redefined in the INTERFACE statement.   [HWND]

The error is pretty clear cut, a simple type mismatch between the routine implementation and its interface. Some indication of line number would be nice. In a module full of windows API call wrappers spanning a few thousand lines of code the dummy arg variable Hwnd occurs quite a few times and I spent quite some time looking at all references to find the miscreant.   If you click on the error it jumps to line 1 of the Fortran source file BTW.

 

0 Kudos
2 Replies
Kevin_D_Intel
Employee
887 Views

Thank you. I will try reproducing this and reporting to Development.

0 Kudos
Kevin_D_Intel
Employee
887 Views

I recreated the errors and confirmed the "jump to error" behavior also. I submitted an enhancement request for including line number information in error #7257. In my test case, I  found the error is also only issued once where multiple mismatches exists within the same file. As for the jump to behavior, the error in the Output pane is currently tagged to line #1 so the behavior seems expected/correct. I do not believe an underlying issue is present with this functionality and expect it to work once the error includes line number information; however, I submitted another internal tracking id to ensure we verify this once the line number is included.

(Internal tracking id: DPD200376097 - Enhance error #7257 to include the corresponding source code line number)
(Internal tracking id: DPD200376098 – "Jump to error" jumps to line 1 of affected source file related to ifort error #7257)

0 Kudos
Reply