if(root%prnt%ng(1)%pp /= 0
attempts to compare a value of type integer to a component of type pointer variable of type(c), and
root%prnt%ng(1)%pp%compc==0
compares a component of type integer to an integer.
The former comparison is invalid; nor is it clear what the intended effect may be.




This binary operation is invalid for this data type, but why ?
I have written a module ( a prt of it shown here) and subroutine inside it, as follows:
The code fails to compile, returning the following error message in line 26: error #6355: This binary operation is invalid for this data type. [PP]
Am I doing something wrong? Thanks
Emre K.