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

Fix missing substring bounds (bug #1091) #1093

Closed klausler closed 4 years ago

klausler commented 4 years ago

The utility function ExtractDataRef is sometimes called with the expectation that it will return the base of a substring reference and sometimes called with the expectation that it will return nullopt when the argument is not just a DataRef. Add an argument to make the distinction explicit.