[Patch, fortran] PR30514 and PR30660 - two small fixes and some tidying up

Paul Thomas paulthomas2@wanadoo.fr
Sat Feb 3 12:30:00 GMT 2007


:ADDPATCH fortran:

These two small fixes are self explanatory; One replaces a call to 
gfc_default_initializer with an explicit examination of the components 
to check if there is a default initializer.  Not only is this more 
efficient but it sidesteps the hidden initializer for allocatable 
components, which caused the problem.  The other fix resets to zero 
length arrays that are declared with negative length.  The testscases 
are the reporters'.

At the same time I have cleared up the warning in resolve.c, associated 
with gfc_pure_function's "name" argeument not being initialized before 
it is used.

Finally, Dominique flagged to me the fact that 
actual_array_interface_1.f90 is empty!  It has dully been restuffed with 
the intended test.

Bootstrapped and regtested on amd64/Cygwin_NT

OK for trunk and, in a week or two, 4.2?

Paul
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: commit.msg
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070203/ce52fee8/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check.diff
Type: text/x-patch
Size: 6057 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070203/ce52fee8/attachment.bin>


More information about the Fortran mailing list