llvm-project
05a3f76d - [flang] Process legacy DATA-style /initializers/ sooner (#162722)

Commit
18 hours ago
[flang] Process legacy DATA-style /initializers/ sooner (#162722) The compiler can't defer the conversion of legacy DATA-style /initializers/ in component declarations to their init() expressions to the general DATA statement conversion pass, since default component values must be present during structure constructor analysis. So move their conversions into name resolution and handle them at the same times as standard '=' initializers are processed. Avoid any potential problems with type parameters being used as repetition counts or values by disallowing legacy DATA-style initializers in PDTs. Fixes https://github.com/llvm/llvm-project/issues/161989.
Author
Parents
Loading