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

Cannot disable Fortran error message 8284

alexandre_h_
Beginner
998 Views

Hello,

I am trying to disable specific error on .f compilation, e.g. error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.

I have tried the syntax: /Qdiag-disable:8284

but I get

Cannot disable Fortran error message 8284

I would rather not turn off the whole interface checking (/warn:interfaces) since it includes some other msg 6633, 6631 that I want to check on a file basis.

Thank you

Alex

 

 

 

0 Kudos
2 Replies
andrew_4619
Honored Contributor III
998 Views

It is not a warning it is an error so your it says your code is not valid. Do you believe the code to be valid? Post some code snippets to show what you are doing and I am sure someone will advise.

 

0 Kudos
Steven_L_Intel1
Employee
998 Views

Can you turn the argument into an array? Rather than ignoring the error, you should make the code legal. As an alternative, I think you could add:

!DEC$ ATTRIBUTES NO_ARG_CHECK :: dummy-arg-name

in the called routine and it should ignore the issue for that argument. I am not recommending this.

0 Kudos
Reply