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

Error: possible out of order or missing USE

Juan_Senent
Beginner
303 Views
Hi,

I just updated my compiler to the new version: Intel Visual Fortran Composer XE 2011 Integration for Microsoft Visual Studio* 2008, 12.0.3470.2008. I was trying to compile some code that used to work for version 11 but now I'm getting a very strange error:

error #6404: This name does not have a type, and must have an explicit type. [GET_SEGMENT_TIME_AT_NODE_INTERF%TIME_NODE]
catastrophic error: Internal Compiler Error: possible out of order or missing USE

the problem is that GET_SEGMENT_TIME_AT_NODE_INTERF is just the name of an abstract interface (located in an include file, see code below).

I have tried to duplicate the problem in a small project but no luck so far. I hope someone has seen a similar problem in the past.

UPDATE: If I make all the variables and routines in the module that contains the abstract interface PUBLIC then it compiles without problems. When some elements are PUBLIC and some PRIVATE I get the above error.

Thanks,

Juan


abstract interface

!********************************************************************************
subroutine get_segment_time_at_node_interf(seg_number, t_node, et)
!********************************************************************************
use kind_definitions
use time_node_type_module
implicit none

integer(cop_int), intent(in) :: seg_number
type(time_node), intent(in) :: t_node
real(cop_real), intent(out) :: et

!********************************************************************************
end subroutine get_segment_time_at_node_interf
!********************************************************************************

end interface
0 Kudos
1 Reply
Steven_L_Intel1
Employee
303 Views
That error is almost always (well, always in my experience) a compiler bug. Please attach a ZIP of your project that we can compile. It's not just that one source, but any modules it uses. When we get that we'll be glad to investigate.

Also, the version number you supplied is that of the Visual Studio integration. When reporting the version to us, please use the number shown under Installed Products, which in this case is 2011.2.154.
0 Kudos
Reply