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

How to declare dummy argument to function ReadFile ?

reidar_tyssen
Beginner
393 Views

In CVF you could use a call to a function ReadFile like this:

bret = ReadFile(hFile,

loc(filebuffer), iFileLength, Loc(dwByteRead), %Val(0)) !CVF

(from Lawrence Norman)

In IVF this doesn,t work, %Val(0) is not accepted as a dummy argument, i get message as shown below:

Compiling with Intel Fortran Compiler 10.0.026 [IA-32]...

TextProcessing.f90

e:TVA51TextProcessing.f90(107) : Error: The type of the actual argument differs from the type of the dummy argument. [%VAL]

e:TVA51TextProcessing.f90(119) : Error: The type of the actual argument differs from the type of the dummy argument. [%VAL]

This application has requested the Runtime to terminate it in an unusual way.

Please contact the application's support team for more information.

GEM_LO_GET_LOCATOR_INFO: zero locator value

Severe: **Internal compiler error: abort signal raised** Please report this error along with the circumstances in which it occurred in a Software Problem Report. Note: File and line given may not be explicit cause of this error.

compilation aborted for e:TVA51TextProcessing.f90 (code 3)

Build log written to file://e:TVA51DebugBuildLog.htm

As you can see, I really succeeded in doing somthing bad.

- Can anyone tell how to get around this ?

Best regards

Reidar

0 Kudos
2 Replies
TimP
Honored Contributor III
393 Views
Internal compiler error is always a bug, even for invalid code. In this case, assuming you had
USE kernel32
it seems the CVF extension should be supported. It certainly looks to my untutored eye that kernel32 provides for this specific case, so it would be important to file the problem report on premier.intel.com.
0 Kudos
Steven_L_Intel1
Employee
393 Views
Just use NULL there. Please do report this problem.
0 Kudos
Reply