Check for unsafe use of .ptr or .funcptr
context
expression for error messages
ptr or funcptr
DotExpFlag
true if error
See Implementation
Check for unsafe use of .ptr or .funcptr