------- Comment #12 from pault at gcc dot gnu dot org 2006-11-30 14:25 ------- (In reply to comment #2) > I'm an absolute beginner in programming gfortran, but the following patch
I am coming to the conclusion that your patch is one of three possible solutions to this and pr30025: (i) Do as you have done and subject this block of code to be conditional on the array being present. We could with some value repsond to Steve's comment by improving the flagging so that none of the arguments that are always present are so treated. (ii) Flag the condition so that in gfc_conv_expr the dummies in the specification expression are tested if they are present. (iii) Modify my patch of #6 so that only integer dummies are so treated. This works and regtests OK but I do not think that it picks up every possibilty; eg. where an inquiry function with a missing argument is used in a specification expression. All in all, I think that a modified version of your patch would do very nicely. Thanks Paul PS Andrew, we had a mid-air there:-) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25818