Error: The type of argument differs from the typeof dummy argument

jimdempseyatthecove
Total Points: 13284
Status Points: 13284
Black Belt
September 5, 2008 8:51 AM PDT
Rate
 
#5 Reply to #4

In addition to Les's comments if your subroutine happened to use a REAL for dummy argument passed as INTEGER .and. if that if that real dummy argument were not use or if the real dummy argument were tested against 0 (.eq., .lt, .ge, .ne.) then the subroutine would have run as intended (excepting if the REAL were REAL(8) and INTEGER were INTEGER(4)). The argument mis-match is an error in programming regardles if the subroutine happened to work as intended.

For the above to work, the variables would have to be internally passed by reference and not passed in a register. Therefore, the program that may have worked on IA32 might not work on EM64T (x64) depending on which argument was in error in the subroutine argument list.

Jim Dempsey

 

Forum Statistics

4480 users have contributed to 24016 threads and 69974 posts to date.
In the past 24 hours, we have 40 new thread(s) 208 new posts(s), and 262 new user(s).

In the past 3 days, the most popular thread for everyone has been Catastrophic error The most posts were made to Identifier "memcpy" is undefined in Fedora 10 with IC 11 - please help The post with the most views is Click on "Software Support".

Please welcome our newest member brg2114