Unexpected pointer assignment statement in …
If you get this and the erring file is a MODULE, then you may forgot to have the assignments below in the CONTAINS section. What you are assigning to must be a TARGET.
Further, the assignments must be in a SUBROUTINE or FUNCTION.
If you were converting a set of F77 EQUIVALENCEs to pointer assignments, you could easily overlook MODULE … CONTAINS … process … your_pointer => (not ==>) fortran_storage_with_TARGET_attribute