flang-compiler / f18

F18 is a front-end for Fortran intended to replace the existing front-end in the Flang compiler
230 stars 48 forks source link

Expression analysis on DataStmtConstant #1044

Closed tskeith closed 4 years ago

tskeith commented 4 years ago

Data statements contains expressions but they are not wrapped in one of the kinds of parse tree nodes that are analyzed, like parser::Expr. So potential errors were not discovered.

Change ExprChecker to handle DataStmtConstant and analyze any expressions that are contained in it. Note that the analyzed form of the expression is not yet saved in the parse tree.