[Patch, fortran] PR30880 - Derived types with default value -- function with ENTRY: rejecte

Paul Richard Thomas paul.richard.thomas@gmail.com
Thu Mar 8 19:18:00 GMT 2007


:ADDPATCH fortran:

This patch is very straightforward.  The stretch in
resolve_fl_variable that checks for legal initializers sets the
default initializer for derived types immediately afterwards.  It so
happens that in the case of derived type dummies and multiple entry
functions the initializer is already assigned and this triggers a
false error.  This is corrected by excluding INTENT_OUT derived types.
 The testcase is that of the reporter.

Bootstrapped and regtested on x86_ia64/FC5 - OK for trunk and 4.2?

Paul

-- 
Anon: "Ignorantibus veritatem dicere semper utile est."

Abraham Lincoln: "It is better to be thought a fool than to speak and
remove all doubt."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Change.Logs
Type: application/octet-stream
Size: 357 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070308/2f17b9cf/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr30880.diff
Type: text/x-patch
Size: 3172 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070308/2f17b9cf/attachment.bin>


More information about the Gcc-patches mailing list