[Bug fortran/110629] Bug in assignment of derived type with deferred length character component

2023-07-11 Thread townsend at astro dot wisc.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110629

--- Comment #3 from Rich Townsend  ---
Thanks for the quick responses, folks. The problem persists in 12.3.0 release,
but is fixed in 13.1.0 release.

[Bug fortran/110629] Bug in assignment of derived type with deferred length character component

2023-07-11 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110629

anlauf at gcc dot gnu.org changed:

   What|Removed |Added

  Known to work||13.2.0

--- Comment #2 from anlauf at gcc dot gnu.org ---
13-branch is also ok.

[Bug fortran/110629] Bug in assignment of derived type with deferred length character component

2023-07-11 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110629

kargl at gcc dot gnu.org changed:

   What|Removed |Added

 CC||kargl at gcc dot gnu.org
   Priority|P3  |P4

--- Comment #1 from kargl at gcc dot gnu.org ---
Thanks for the bug report.  This seems to have been fixed in trunk.  I don't
have gfortran 13.1 installed so cannot test.

% gfcx -o z a.f90  && ./z
   1 |big   |
   2 |red   |
   3 |dog   |
% gfcx -o z -O a.f90 && ./z
   1 |big   |
   2 |red   |
   3 |dog   |
% gfortran12 -o z -O a.f90 && ./z
   1 |big   |
   2 ||big|
   3 ||big||

There are a few Changelog entries over the last year that mention deferred
length, but it's unclear which one might have fixed the issue.