[flang] Make GenericAssignmentWrapper more like GenericExprWrapper
Have it wrap an optional Assignment so that we can distinguish between unanalyzed and analyzed with error. Change analysis of PointerAssignmentStmt to proceed with bounds even if the DataRef or Expr has an error. Otherwise any bounds expressions won't be analyzed in that case. In GetExpr() and GetAssignment() if we get an internal error due to an unanalyzed expression, dump the parse tree for the expression so we have some context for the error. They should only be called after the expression analysis phase. At that point, every expression and assignment should be analyzed, though some may have resulted in errors(indicated by returning `nullptr`). Original-commit: flang-compiler/f18@3b865d7703f53099cd491ed1aa9b80b46fee9f58 Reviewed-on: https://github.com/flang-compiler/f18/pull/944 Tree-same-pre-rewrite: false
Loading
Please sign in to comment