http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56132
Bug #: 56132 Summary: Lengths incorrect on assignment to an allocatable character scalar. Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: jtap...@gmail.com Created attachment 29296 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29296 Code demonstrating the problem When I run the attached program with gfortran (4.7.2), the length appears to be that of the previous assignment, e.g.: ./a.out String :_jjjj 0 0 String :_ssss 0 4 ssss String :_77 4 ssss 4 77 String :_why does this happen 4 77 2 wh