https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100821
Bug ID: 100821 Summary: Deferred character with wrong bounds Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: jrfsousa at gcc dot gnu.org Target Milestone: --- Created attachment 50887 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50887&action=edit Fortran code showing problem Hi All! Due to the way deferred character length is implemented, using SAVE_EXPR, it will usually contain garbage. Seen on: GNU Fortran (GCC) 9.3.1 20210526 GNU Fortran (GCC) 10.3.1 20210526 GNU Fortran (GCC) 11.1.1 20210526 GNU Fortran (GCC) 12.0.0 20210527 (experimental) Thank you very much. Best regards, José Rui