- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I have a piece of code which is compiling on Intel Version 9.1. I recently downloaded Intel 11.1.065 and compiled the same code and have the following error.
error #6633: The type of the actual argument differs from the type of the dummy argument.
The code is
subroutine test
implicit none
external rou1
status = signal (2,rou1,-1)
end subroutine
subroutine rou1
implicit none
call rou2
end subroutine
Do I need to make any modifications for the code to compile with the new compiler.
Thanks.
error #6633: The type of the actual argument differs from the type of the dummy argument.
The code is
subroutine test
implicit none
external rou1
status = signal (2,rou1,-1)
end subroutine
subroutine rou1
implicit none
call rou2
end subroutine
Do I need to make any modifications for the code to compile with the new compiler.
Thanks.
- Balises:
- Intel® Fortran Compiler
Lien copié
2 Réponses
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
There should be more to the program than this. 9.1 did not have "interface checking" on by default, 11.1 does. What is the line of code that the error message was given for, what are the declarations of the arguments in the argument list and what does the called routone have for its argument list and declarations?
The error message identified a particular actual argument in the call whose type differs from what is declared in the called routine. This is not legal Fortran, though sometimes people code such mismatches deliberately. If you provide us the information I asked for, we can advise you better.
The error message identified a particular actual argument in the call whose type differs from what is declared in the called routine. This is not legal Fortran, though sometimes people code such mismatches deliberately. If you provide us the information I asked for, we can advise you better.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
The good Doctor Fortran is very patient and has excellent bedside manners, but cases such as the present ones are bound to, shall we say, make his day "interesting"?
Any compiler, from Intel or not, would have flagged 'signal' and 'status' as undeclared variables. Unless the compiler had seen a previous declaration for 'signal', it would not have complained about argument type mismatches.
Please provide a complete test program source, a 'reproducer' or 'bug-catcher' as it is sometimes called.
Any compiler, from Intel or not, would have flagged 'signal' and 'status' as undeclared variables. Unless the compiler had seen a previous declaration for 'signal', it would not have complained about argument type mismatches.
Please provide a complete test program source, a 'reproducer' or 'bug-catcher' as it is sometimes called.

Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable