[patch, fortran] Fix PR 90561

Thomas König tk@tkoenig.net
Tue Aug 13 13:21:00 GMT 2019


Hello world,

this patch fixes a 9/10 regression by placing the variable used to
hold a string length at function scope.

I chose to implement this version of gfc_evaluate_now as a separate
function because I have a sneaking suspicion this may not be the
last time we are going to encounter something like that - better
have the function there for future use.

Regression-tested. OK for trunk and gcc-9?

Regards

	Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p3.diff
Type: text/x-patch
Size: 1891 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190813/21877737/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deferred_character_34.f90
Type: text/x-fortran
Size: 226 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190813/21877737/attachment-0001.bin>


More information about the Gcc-patches mailing list