[Patch, fortran] PR30319 - internal error in gfc_resolve_expr() for character parameter

Paul Thomas paulthomas2@wanadoo.fr
Sat Feb 10 21:11:00 GMT 2007


:ADDPATCH fortran:

This problem arises because the gfc_charlen of an initializer array 
constructor is shared with any parameters there might be in the 
constructor.  Thus freeing the gfc_charlen to update to the length of 
the symbol being initialized is not a good idea.

The fix is accomplished by building a new gfc_charlen, chained into the 
namespace so that it is cleaned up, and adding the symbol length to 
that.  The testscase is that of the reporter.

Bootstrapped and regtested on Cygwin_NT/amd64

OK for trunk and after a delay of 1 week for 4.2?

Paul


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Change.Logs
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070210/4e4abe26/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr30319.diff
Type: text/x-patch
Size: 1907 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070210/4e4abe26/attachment.bin>


More information about the Fortran mailing list