error #6618: The INTERFACE/CONTAINS stack is full. This means that modules are being 'used' in a circular way.
I am confused as to what this error means. As far as I can tell, there is no circular 'use' statements in my code. I would put examples but I have been unable to reproduce the error with an example code and cannot post my entire code here. Can anyone provide any insight as to what causes this error?
It cropped up when I included a use statement in a module for a data type that extends a class and the same class, so:
module Example
use SomethingThatExtendsExampleClass
use ExampleClass
end module Example
However, now that it has occured, I cannot get rid of the error even after commenting out all new code.
链接已复制
Did you also remove any old .mod files after making this source change?
Its possiblea circular 'use' link was created accidentally by not removing the previous .mod files and adding the new 'use' statements.
The short example I had in mind that might produce error #6618instead produces:
sample.f90(7): error #7765: FATAL ERROR - conflict or recursive module USE
I'll check w/Development abouta small unit test that might help explain the circumstances when #6618 is issued.
I guess this error as resurfaced for you (based on the previous thread - here) or perhaps it was never resolved?
We recently purchased the new Intel Fortran composer XE 2013 and converting our old projects and getting the #6618 error for one of the projects that is being converted. I am guessing this is a compiler problem since we never had this error before. Could anyone provide guidance on this issue?
This error should not occur - can you provide us with the sources necessary to reproduce the problem? You can attach it here (a .tgz file works) or you can use Intel Premier Support (https://premier.intel.com)
