When I use pgf90 to compile a fortran90 program, I get the following
error: “PGF90-S-0099 Illegal use of derived type”. In my program, I defined a local variable “type(dd_real) sum", where “dd_real” is a derived
type, and the assignment operator “=” has been overloaded for “dd_real", The error occured at this statement : “sum=ZERO”, where “ZERO” is a constant with “dd_real” type. But if I change the variable name “sum”
to other e.g. “ssum”, no error reported. I wonder if the local variable
name “sum” conflicts with the intrinsic procedure “sum”. Then I do another
test, such as
no error occured. What’s wrong with the derived type?
Thanks a lot.