Can you post an example code that causes the problem? While tan is an intrinsic, users can override intrinsics by declaring their own variables with the same name. I’m wondering if you have tan declared in a different part of the code, and some how the compiler isn’t resetting that tan is an intrinsic rather than a user defined variable. Though, without an example, this is just a guess. Also, what version of the compiler are you using?
Well, it’s a fairly long and complicated code. It does compile fine with the Intel compiler and I did not use “tan” in any other way. I’ll try to isolate the problem a bit more.
Looks like the issue is that you’re passing a complex value to TAN. Since only real types are allowed with the TAN intrinsic, the compiler is assuming that your TAN is a user define function.