llvm-project
471ed9ad - [flang] Rework component KIND= values in PDT instantiations (#162367)

Commit
206 days ago
[flang] Rework component KIND= values in PDT instantiations (#162367) When processing the KIND= values of type specifications in parameterized derived type component declarations, it turns out to be necessary to analyze their expressions' parse trees rather than to just fold their typed expression representations. The types of the subexpressions may depend on the values of KIND parameters. Further, when checking the values of KIND= actual arguments to type conversion intrinsic functions (e.g., INT(..., KIND=)) that appear in KIND specifiers for PDT component declarations, don't emit an error for the derived type definition, but instead emit them for derived type instantiations. Fixes https://github.com/llvm/llvm-project/issues/161961.
Author
Parents
Loading