This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
1. In resolve.c (resolve_fl_variable), set a default initializer for derived type dummies with INTENT(OUT) even if 'flag' is true.
2. In trans-expr.c (gfc_conv_function_call), the default initializer of the dummy is then assigned to the argument.
Another change since last time is a check for ALLOCATABLEs; them we shouldn't initialize, because they will be deallocated at this stage.
Why not, then, check !sym->attr.allocatable in resolve_fl_variable (and assert that in gfc_conv_function_call)? Sorry to be a PITA ;-)
Gr. Steven
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |